[Fixed]-How do install node.js and bower in virtualenv

0👍

I discovered some linux distributions install nodejs not as “node” executable but as “nodejs”.

In this case you have to manually link to “node” as many packages are programmed after the “node” binary. Something similar also occurs with “python2” not linked to “python”.

In this case you can do an easy symlink. For linux distributions which install package binaries to /usr/bin you can do

ln -s /usr/bin/nodejs /usr/bin/node
👤HenryM

1👍

Error talks about /usr/bin/env which is a system command, so can you rename your virtualenv, may be its conflicting with the system command. try creating virtualenv venv and do source venv && pip install nodeenv

UPDATED:

virualenv venv 
source venv
pip install nodeenv

install the nodeenv in side your virtualenv, it should work!

Leave a comment