How to install Node.js on WHM server or cPanel

In this post i will explain how to install Node.js on your hosting server.

Node.js is a JavaScript runtime and uses an event-driven, non-blocking I/O model that makes it lightweight and efficient. Node.js’ package ecosystem, npm, is the largest ecosystem of open source libraries in the world. You can check more information on their official website

To install Node.Js open SSH and use third-party tool (Like Putty) to run commands or use Terminal provided on WHM or cPanel servers.

Now run below listed commands one by one to install Node.Js on your hosting server.

1) #cd /usr/local/src

2) #wget

3) #tar -zxvf node-v0.10.26.tar.gz

4) #cd node-v0.10.26

5) #./configure –prefix=/usr/local

6) #make

7) #make install

That’s is the whole steps to install the Node.js on the WHM server or cPanel.

To check the node.js version run below command.

#node -v

After running this command you will get output like this


To install any module of Node.Js run command like this

# npm install MODULE_NAME

Hope this will help. Enjoy!