I have been working with a node.js project for a few weeks and it has been working great. Usually, I use npm start to run my app and view it in a browser on loc
npm start
check for any process running on the same port by entering the command:
sudo ps -ef
You can find the process running on the respective node port, then kill the node by
kill -9
If the problem still remains then just kill all the node
killall node