node_modules like express and forever is not running in Ubuntu 14.04 LTS

Posted May 13, 2014 5.6k views
Hi, I have install nodejs and mysql.. Node js and MYSQL is running fine. For node/npm, I have ran: apt-get install nodejs apt-get install npm But, after installing node-module -g (globally) express and forever. express and forever command is not running. which express gives: /usr/local/bin/express and /usr/local/bin/forever Even I have entered in $PATH variable. Let me know If there is anything I can do to resolve this problem. 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.

Submit an Answer
2 answers

Could you expand on what you mean when you say express and forever are not running? Is there any error output? Most likely, you need to link node and nodejs. Run:

sudo ln -s /usr/bin/nodejs /usr/local/bin/node

This is because things installed via npm want the Node.JS interpreter to be named "node" while the version installed by apt is named "nodejs"
Hi Andrew,

yes, thats a solution.
I did as suggested soft-linking of nodejs to node and it works.

- Thanks :)