Skip to content

Instantly share code, notes, and snippets.

@richardkazuomiller
Last active August 29, 2015 13:56
Show Gist options
  • Save richardkazuomiller/9087599 to your computer and use it in GitHub Desktop.
Save richardkazuomiller/9087599 to your computer and use it in GitHub Desktop.
install node.js in one go
#/bin/bash
sudo apt-get update
sudo apt-get install python-software-properties python g++ make git -y # install dependencies with -y to avoid prompt
wget -qO- https://raw.github.com/creationix/nvm/master/install.sh | sh # get the node.js install script
source ~/.nvm/nvm.sh
[ -s $HOME/.nvm/nvm.sh ] && . $HOME/.nvm/nvm.sh # This loads NVM without having to restart your console
nvm install 0.10
nvm use 0.10
nvm alias default 0.10
source ~/.profile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment