Last active
August 29, 2015 13:56
-
-
Save richardkazuomiller/9087599 to your computer and use it in GitHub Desktop.
install node.js in one go
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#/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