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.
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).
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With