Install Node.js in UNIX

Share:
Do something like this

 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

'; (function() { var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true; dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js'; (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq); })();

Ads