I am running a node js server on aws EC2 instance
when i do node server.js its working but when i start the server using pm2 i am getting code: 'EADDRINUSE',
after installing pm2 can't even use node server.js it also says EADDRINUSE, so to rerun it i have to uninstall the pm2 and stop the node process that runs port 3000, but as soon as i install pm2 the port 3000 is becoming unavailable
root 47971 0.7 2.7 647924 55712 ? Ssl 11:20 0:00 node /home/ubuntu/kanaswap-name-service/server.js
the above process runs automatically when i install pm2 , i cant even kill that process
process that runs on port 3000

even after killing the process it runs automatically,

