Question
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”?
Thanks.
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.
×
Thanks for your quick response.
I thought I had nodejs Ubuntu package, but it what I installed told me that I needed to use “nodejs” instead of “node” to run,, that tells me that I got a different distribution.
I am thinking of rebuilding the droplet and start fresh (my source and data are backed up in another server), would you point me to the proper Ubuntu distribution? (a command to install would be nice ;)