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/
tar xvpzf node-v*
cd node-v*

Configure & Compile NodeJS:

make instal

Now check the NodeJS was installed properly:

# node --version

It should show you the last version number.