INSTALLATIONS

Install nodejs on cPanel or CentOS server

install nodejs
install nodejs

Install nodejs on cPanel or CentOS server

Node.js is an open-source runtime environment for developing server-side Web applications. This post will help you to install nodejs on cPanel or CentOS server.

Please note that the following packages requires to install Nodejs on the server.

  • Python 2.6 or newer
  • GNU Make 3.81 or newer
  • GCC 4.2 or newer

You can check the versions of the above packages by running the following commands.

 
python -V
make -v
gcc --version

Install Nodejs

You can find the current and LTS versions of Node.js from [button color=”green” size=”small” link=”https://nodejs.org/en/” icon=”” target=”true”]Here[/button]

Please note that the latest available version of Node.js for cPanel is node v0.10.42. All higher versions of Node.js requires higher versions of gcc which is not available on cPanel servers.

 
cd /usr/local/src
wget http://nodejs.org/dist/v0.10.42/node-v0.10.42.tar.gz
tar xvf node-v0.10.42.tar.gz
cd node-v0.10.42
./configure --prefix=/usr/local 
make
make install

Once the installation completed, please check the version and binary path using the following commands.

 
node --version
which node

That’s it!

If you like this post and wish to receive more articles from us, please like our FB page: Grepitout

Your suggestions and feedbacks will encourage us and help to improve further, please feel free to write your comments.

For more details on our services, please drop us an E-mail at info@grepitout.com

Topics