Mac
If you’re using the excellent homebrew package manager, you can install node with one command: brew install node.
Otherwise, follow the below steps:
-
Run the following commands:
git clone git://github.com/ry/node.git
cd node
./configure
make
sudo make install
Ubuntu
-
Install the dependencies:
sudo apt-get install g++ curl libssl-dev apache2-utils
sudo apt-get install git-core
-
Run the following commands:
git clone git://github.com/ry/node.git
cd node
./configure
make
sudo make install
NB: node version can be checked from terminal by $ node -v
use this link for further information: