Skip to content

Instantly share code, notes, and snippets.

@dariocravero
Last active August 29, 2015 14:18
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dariocravero/8db219777b277c29fc06 to your computer and use it in GitHub Desktop.
Save dariocravero/8db219777b277c29fc06 to your computer and use it in GitHub Desktop.
curl https://raw.githubusercontent.com/tj/n/master/bin/n > /usr/local/bin/n
chmod +x /usr/local/bin/n
n io latest
# install nvm to manage iojs
curl https://raw.githubusercontent.com/creationix/nvm/master/install.sh | bash
# activate nvm
source ~/.nvm/nvm.sh
# and make sure it gets activated whenever we open a console
[[ -f ~/.bash_profile ]] && BASH_PROFILE=~/.bash_profile || BASH_PROFILE=~/.bashrc
echo "source ~/.nvm/nvm.sh" >> $BASH_PROFILE
# install and activate the latest iojs
nvm install iojs
nvm use iojs
nvm alias default iojs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment