Skip to content

Instantly share code, notes, and snippets.

@mbonaci
Created March 8, 2014 12:51
Show Gist options
  • Save mbonaci/9430135 to your computer and use it in GitHub Desktop.
Save mbonaci/9430135 to your computer and use it in GitHub Desktop.
Install node&npm with nave on Ubuntu 13.04 (with subshell)
# isaacs's nave:
# this way is really handy if you want to test things
# in different versions of node and use stable release
# versions of things.
# make a folder where you want to keep this stuff.
mkdir ~/.nave
cd ~/.nave
wget http://github.com/isaacs/nave/raw/master/nave.sh
sudo ln -s $PWD/nave.sh /usr/local/bin/nave
# to use a version of node in a virtual environment
nave use 0.4.8
# to install npm in that virtualenv
curl https://npmjs.org/install.sh | sh
# do stuff...
npm install whatever etc
# return to non-nave-land
exit
# use a different version of node..
nave use 0.4.6
# etc...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment