Installing node.js on ubutnu
- https://github.com/joyent/node/wiki/Installation
- step 3a ) Installing on Unix (including BSD and Mac)
- sudo apt-get install git
- git clone git://github.com/joyent/node.git
- to install particular version we want the stable one.
- cd node
git checkout v0.4.11 # optional. Note that master is unstable.
export JOBS=2 # optional, sets number of parallel commands.
mkdir ~/local - neccessary for configure
- sudo aptitude install build-essential
- sudo apt-get install libssl-dev
- ./configure –prefix=$HOME/local/node
make
make install
echo ‘export PATH=$HOME/local/node/bin:$PATH’ >> ~/.profile
echo ‘export NODE_PATH=$HOME/local/node:$HOME/local/node/lib/node_modules’ >> ~/.profile
source ~/.profile