pm2 calls node, not nodejs
I installed pm2 following https://www.digitalocean.com/community/tutorials/how-to-use-pm2-to-setup-a-node-js-production-environment-on-an-ubuntu-vps instructions. When I attempt to execute:
pm2 start app.js
It seems like it is looking for “node”, but when I installed node js, the command to run node is “nodejs” (something with name clash in ubuntu).
How can I setup pm2 to run “nodejs” instead of “node”?
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.×