Categories: Installation

How to Install Node.js On CentOS 7

 

Node.js is an open source, cross-platform runtime environment for server-side and networking applications. Node.js applications are written in JavaScript and can be run within the Node.js runtime on OS X, Microsoft Windows, Linux, FreeBSD, NonStop, IBM AIX, IBM System z and IBM i.

Install Node.js From Source

The following steps to install Node.js From Source

1) Open a new terminal tab on your CentOS 7 machine.

2) Run the following command to download the archive file which we need to use for the installation.

wget http://nodejs.org/dist/v0.12.0/node-v0.12.0.tar.gz

3) Eextract the tar file

tar xvf node-v0.12.0.tar.gz

4) Use the following command to change the working directory to node.

cd node-v*

Before compiling our code we need to install some packages in our CentOS machine that will help us to do so.

1) Opened tab of your terminal enter the followings.

sudo yum install gcc gcc-c++

2) Wait for these packages to install

3) Run the following commands to configure and compile

./configure
make

Don’t worry if the above takes some time to complete because the compilation will take awhile.

4) Use the following command to install Node.js on your system.

sudo make install

 

.

.

.

Once the installation is finished

 

You can start using Node.js and to make sure that the correct version is installed you can use the following command in order to check it.

node –version


Vishwajit Kale

Vishwajit Kale blazed onto the digital marketing scene back in 2015 and is the digital marketing strategist of Hostdens, a company that aims to provide reliable web hosting solutions. Vishwajit is experienced in digital and content marketing along with SEO. He's fond of writing technology blogs, traveling and reading.
Vishwajit Kale

Vishwajit Kale blazed onto the digital marketing scene back in 2015 and is the digital marketing strategist of Hostdens, a company that aims to provide reliable web hosting solutions. Vishwajit is experienced in digital and content marketing along with SEO. He's fond of writing technology blogs, traveling and reading.

Leave a Comment
Share
Published by
Vishwajit Kale

Recent Posts

Green Data Centers To Have Strong Impact On Data Processing And Hosting Service Businesses

About Bizvibe Bizvibe is a B2B online platform that helps in connecting buyers and sellers…

3 years ago

File Server Security Is Important for An Organization: Find out How

File server investment is the smart investment anyone can make for their business. It has…

3 years ago

Cloud Computing Explained

Because of the many advantages of the cloud, people are moving more and more towards…

3 years ago

Cloud to which more and more companies are moving advanced workloads

Cloud Adoption Accelerates IT Modernization. More and more online businesses are increasing more and more…

3 years ago

History of web hosting

Almost more than half of the total world’s population were using the internet by any…

3 years ago

Plesk appoints ZNet Technologies as a global distributor to expand reach in untapped markets

Plesk is an IT service provider company which was founded in 2000 by Dimitri. The…

3 years ago

This website uses cookies.