While trying to run node server using node server.js, I get the error to listen EADDRINUSE :::4002. I get the process listening on port 4002 by the command: sudo lsof -i :4002. After that I try to kill the process using kill -9 . The problem is when I run sudo lsof -i :4002 command again after killing the process, I see the node process running again with a different proces id.
The node server was started by a different user and I am trying to kill it with another user.