Use the CTRL + C key combination to stop. And learn how to use screen , I gave you a manual on how to work with it on CentOS, but for other OSs there is also a similar use, the installation is a bit different, but the essence is almost the same.
Create a file run.sh and run through it, it will be convenient in the future, especially when you figure it out normally.
#Путь до проекта cd /www/test.com/ #Запуск проекта, Test - название процесса screen -S Test npm run start
You can add the script to autoload, then the server will start immediately after switching on
Specify in packege.json
"scripts": { "start": "node start server.js" },
If you constantly restart the server during development, you can use nodemon , it monitors the files and if something changes, it is restarted