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 Here
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
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 Here
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
No comments:
Post a Comment