Skip to content

Instantly share code, notes, and snippets.

@niksmac
Created January 22, 2014 06:44
Show Gist options
  • Save niksmac/8554406 to your computer and use it in GitHub Desktop.
Save niksmac/8554406 to your computer and use it in GitHub Desktop.
How to install the latest version of node.js
$ cd /usr/local/src
$ git clone https://github.com/joyent/node.git
$ cd node
$ git checkout v0.10.24 #Try checking www.nodejs.org for what the stable version is
$ ./configure && make && sudo make install
$ which node #Confirm installation
#You may want to put the node executables in your path as well for easier use. Add this line to your ~/.profile or ~/.bash_profile or ~/.bashrc or ~/.zshenv
$ export PATH=$PATH:/opt/node/bin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment