Skip to content

Instantly share code, notes, and snippets.

@max-arnold
Last active December 23, 2015 10:39
Show Gist options
  • Save max-arnold/6623465 to your computer and use it in GitHub Desktop.
Save max-arnold/6623465 to your computer and use it in GitHub Desktop.
node.js installation into virtualenv
# workon myenv
# cdvirtualenv
#
## prefix is required both for compilation and for npm:
# export PREFIX=$(pwd)
# export NODEVER=0.10.18
#
# wget http://nodejs.org/dist/v${NODEVER}/node-v${NODEVER}.tar.gz
# tar -zxf node-v${NODEVER}.tar.gz
# cd node-v${NODEVER}
# ./configure --prefix=$PREFIX
# make && make install
#
# cd ..
# rm -rf node-v${NODEVER}
# rm node-v${NODEVER}.tar.gz
#
## next, install necessary packages with npm -g:
# npm install -g coffee-script
#
## to refresh shell command cache use hash -r
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment