How to install NodeJS on CentOS 7.x

[Total: 3    Average: 5/5]

Node.js is a Javascript platform built to help developers to create fast and rich Javascript applications. It allows users to build apps that require back-end functions using Javascript on the server side. In this article I will show you how to install NodeJS on CentOS 7 server.

First you can install basic compiler tools using this command:

yum install gcc gcc-c++

Installing NodeJS on CentOS 7.x using source files

# cd /usr/local/src/
wget http://nodejs.org/dist/v0.10.31/node-v0.10.31.tar.gz
tar xvpzf node-v*
cd node-v*

Configure & Compile NodeJS:

./configure
make
make instal

Now check the NodeJS was installed properly:

# node --version

It should show you the last version number.