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

May 13, 2014 5k 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,
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 :)

Have another answer? Share your knowledge.