nodejs app port is already in use code example
Example 1: port already in use node js
sudo kill -9 $(sudo lsof -t -i:3000)
Example 2: npm port already in use
$ lsof -i tcp:3000
$ kill -9 PID
sudo kill -9 $(sudo lsof -t -i:3000)
$ lsof -i tcp:3000
$ kill -9 PID