Created
January 22, 2014 06:44
-
-
Save niksmac/8554406 to your computer and use it in GitHub Desktop.
How to install the latest version of node.js
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
$ 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