Do something like this
If you want to like install form repository
if you want to install node.js in specific folder you can use
set environment variable path
tar -zxf node-v0.6.18.tar.gz #Download this from nodejs.org
cd node-v0.6.18
./configure && make && sudo make install
If you want to like install form repository
git clone https://github.com/joyent/node.git
cd node
git checkout v0.6.18 #Try checking nodejs.org for what the stable version is
./configure && make && sudo make install
if you want to install node.js in specific folder you can use
./configure --prefix=/home/nikunj/nik_verve/source/node-v0.10.20 && make && sudo make install
set environment variable path
export PATH=$PATH:/home/nikunj/nik_verve/source/node-v0.10.20
No comments