Created
July 4, 2013 02:06
-
-
Save ckng/5924369 to your computer and use it in GitHub Desktop.
Install node.js via Node Version Manager (nvm)
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
Redhat | |
------ | |
$ sudo yum -y install tcsh scons gcc-c++ glibc-devel openssl-devel git python | |
Ubuntu | |
------ | |
$ sudo apt-get install build-essential libssl-dev curl git-core | |
$ git clone git://github.com/creationix/nvm.git ~/.nvm | |
$ printf "\n\n# NVM\nif [ -s ~/.nvm/nvm.sh ]; then\n\tNVM_DIR=~/.nvm\n\tsource ~/.nvm/nvm.sh\nfi" >> ~/.bashrc | |
$ NVM_DIR=~/.nvm | |
$ source ~/.nvm/nvm.sh | |
$ nvm install v0.10 | |
$ nvm alias default 0.10 | |
$ nvm use 0.10 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment