Ubuntu 14.04 x64
I follow the instructions here [ https://www.digitalocean.com/community/tutorials/how-to-install-node-js-on-an-ubuntu-14-04-server ] and ran the following commands; $ sudo apt-get update $ sudo apt-get install nodejs $ sudo apt-get install npm
“Because of a conflict with another package, the executable from the Ubuntu repositories is called nodejs instead of node. Keep this in mind as you are running software.”
user@xxx:~ $ node --version *The program ‘node’ can be found in the following packages:
user@xxx:~ $ nodejs --version v0.10.25
I then installed forever; $ sudo npm install -g flatiron $ sudo npm install -g forever
user@xxx:~ $ forever --help /usr/bin/env: node: No such file or directory
I read the info here [ https://www.digitalocean.com/community/tutorials/how-to-host-multiple-node-js-applications-on-a-single-vps-with-nginx-forever-and-crontab ] but it makes no mention of needing to create a symlink and always refers to the executable as [ $ node ]
I assume that [ $ forever ] is looking for [ $ node ] and can not find it. Do I need to create a symlink to direct [ $ node ] to [ $ nodejs ]?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
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.
Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.
Click below to sign up and get $100 of credit to try our products over 60 days!