Home Servers Install node.js on CentOS 6 and 7 Server from source

Install node.js on CentOS 6 and 7 Server from source


Install node.js CentOS

Ghost is a new blogging platform, I am trying nowadays. One of the main prerequisite¬†for Ghost installation is Node.js. Nodejs is a javascript platform for server-side programming. A server-side language combined with client can really result in powerful and less laggy apps. So, let’s install node.js on your server. I am writing this for both CentOS 6 and CentOS 7 server.

Login to your server, preferably as root or at least as sudo user.

We will need Node.js source file and not the compiled package. Download the source file to your server using,

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

Please note that at time of writing node.js version was 0.10.33. If you get error then go here and copy the link for source file download and replace above URL.

To compile this source, your GCC compiler should be there on your server,

sudo yum install gcc gcc-c++

Use above command without ‘sudo’ if you are root user.

Now, let’s extract and create directories for downloaded source,

tar xzvf node-v* && cd node-v*

After some extracted outputs, copy paste below command to enter the directory,


and then build the installer with make command,


Now, what will start is a very lengthy process and sometimes you will even feel that same thing is scrolling in front of you. It is like that never ending OS installations which were habitual in 90’s.

Whatever! As soon as this is finish, you will be back at prompt. Now install these newly created installations,

sudo make install

Don’t go anywhere. This one will be quick!

To check the successful installation and version, you can run below;

node --version

If you version number as below, then you can take it as everything was successful. (note: version number may vary)


Let me know of questions and suggestions.

Load More Related Articles
Load More In Servers

Don't hesitate. Comment!

Check Also

How to change Wifi Adapter IP on Windows 10

Quick guide with screenshot to help you fix IP configuration on Windows 10. …