Created
September 13, 2015 20:39
-
-
Save mrdrozdov/b9586af622911a80e181 to your computer and use it in GitHub Desktop.
install node
This file contains 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
sudo su - root | |
sudo mkdir /opt/nvm | |
sudo chmod a+rx /opt/nvm | |
echo "export NVM_DIR=/opt/nvm" | sudo tee -a /root/.profile | |
echo "source /opt/nvm-repo/nvm.sh" | sudo tee -a /root/.profile | |
sudo git clone https://github.com/creationix/nvm.git /opt/nvm-repo | |
nvm install v0.10 | |
sudo ln -s /opt/nvm/v0.10.40/bin/npm /usr/local/bin/npm | |
sudo ln -s /opt/nvm/v0.10.40/bin/node /usr/local/bin/node |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment