Change directory to vitualenv:
cd /path/to/virtualenv
Download node:
wget http://nodejs.org/dist/v0.10.17/node-v0.10.17.tar.gz
Set prefix variable:
export VPREFIX=$(pwd)
Untar the archive:
tar xfz node-v0.10.17.tar.gz
Change to that new directory:
cd node-v0.10.17.tar.gz
Run configure:
./configure --prefix=$VPREFIX
Note: you should see something about you virtualenv's python in the configure output
Run make:
make
Install node:
make install
Verify the correct path:
which node
note: you have to have you virutalenv activated.
Last active
December 21, 2015 11:59
-
-
Save paul-schwendenman/6303074 to your computer and use it in GitHub Desktop.
Install node in a virtualenv rather than in the system path
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment