Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

pm2 process manager not working

Tags:

node.js

npm

pm2

I install the pm2 using npm install -g pm2 then when I run my node application using

pm2 start app.js

nothing is happening. when I run the command in terminal, it just go down another line. No errors or warnings shows in the terminal. I can run the application using nodejs app.js . Any kind of help would be appreciated. Thanks.

like image 787
Gayan Charith Avatar asked Jul 28 '14 09:07

Gayan Charith


People also ask

What is pm2 Process Manager?

PM2 is a Node. js process manager that comes with a built-in load balancer. It helps facilitate production deployments and enables you to keep running applications alive indefinitely (even when accidents occur).


1 Answers

I suppose it happens because of the node.js executable, if you are in Ubuntu install nodejs-legacy to enable the correct "node" executable link, I think pm2 is trying to use this one.

like image 55
Omar Avatar answered Oct 07 '22 11:10

Omar