Skip to content

Instantly share code, notes, and snippets.

@ckng
Created July 4, 2013 02:06
Show Gist options
  • Save ckng/5924369 to your computer and use it in GitHub Desktop.
Save ckng/5924369 to your computer and use it in GitHub Desktop.
Install node.js via Node Version Manager (nvm)
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