Node.js is an open-source and server side script plateform which uses java script on a web server . It is faster than other languages like python, perl or Ruby and is able to handle lots of concurrent connection with minimum resource on a single process.it is based on cross plateform for develop network applications as well as server side applications.
Install node.js from Source
Download the Latest node.js :
Here we have use wget command for download in server node.js source package.Here we are downloading node.js v5.5.0.
extract the downloaded source package file through below command.
tar -zxvf node-v5.5.0.tar.gz
after extract , go in to the extracted directory.
Now Run the below nodejs installer to configure node on /usr/local directory and make compile .
./configure --prefix=/usr/local make make install
I am showing last some lines of output , when I have run the make install command , it should be like same on your server .
.... installing /usr/local/include/node/openssl/archs/BSD-x86_64/opensslconf.h installing /usr/local/include/node/openssl/archs/VC-WIN32/opensslconf.h installing /usr/local/include/node/openssl/archs/aix-gcc/opensslconf.h installing /usr/local/include/node/openssl/opensslconf.h installing /usr/local/include/node/zconf.h installing /usr/local/include/node/zlib.h
Check Node.js Version
Here below command you can check node.js version of successfully install node.js.
Output comes like below, means you have successfully install node on server.
Here our other article of node.js installation on cPanel/WHM , you can find here. Click below on link.