Skip to content

Instantly share code, notes, and snippets.

@onjiro
Created February 21, 2012 11:55
Show Gist options
  • Save onjiro/1876096 to your computer and use it in GitHub Desktop.
Save onjiro/1876096 to your computer and use it in GitHub Desktop.
nvm install
#!/bin/sh
sudo apt-get install curl
git clone git://github.com/creationix/nvm.git ~/.nvm
. ~/.nvm/nvm.sh
echo ". ~/.nvm/nvm.sh" >> ~/.bashrc
echo "enter node version you want to install..."
read -p "ex.) v0.6.11 > " version
nvm install $version
nvm use $version
echo "nvm use $version" >> ~/.bashrc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment