Easy way to install Node.JS on CentOS

Node.js is a Javascript programming platform that allows users to build network applications very easily. Many developers want to build applications and libraries using JavaScript (server-side and client-side).

Previously I posted a tutorial about how to get it installed on Ubuntu server and today, I will show you how to make it done on CentOS.

PREREQUISITE

  1. A working CentOS server.
  2. Windows users should download Putty while Mac and Linux users can simply use Terminal
  3. You’ll also need to have a basic skill to use Putty and to navigate through SSH.
  4. Your server must have necessary software to host a website. In this case are: Apache, PHP5, and MySQL
  5. About 15 minutes of your time and a cup of tea

Step-1 Login to your server as root user.

First update with YUM

yum update -y

This process will take some time to complete

Step-2 Next, we may need to install related dependencies:

yum -y groupinstall "Development Tools"

Step-3 Now issue following command to install Git on CentOS

yum -y install git

Step-4 Next need to issue several commands to start installing Node.js

git clone git://github.com/joyent/node.git

Next, now go to the node directory:

cd node

Now let’s start the configuration:

./configure

Now type make and hit Enter. This would take more than 5 minutes to complete.

make

Finally, Run this last command syntax to build up Node.js from its official Git that we’ve just cloned before:

make install

Congratulation, you have installed Node.js successfully.

Now you can confirm which version of NodeJS is installed using below commnad:

node --version

So this is all you have to do, Please Give your opinion below if you experience any issues or to discuss your ideas and experiences.