Node.js is a javascript platform that also includes the Node package manager (NPM). The EPEL installation is the simplest way to install and ensure that it's updated, but you may not want to use that if you prefer to install from source.
Use SSH to log into your server as root.
Install the EPEL repository
yum install epel-release
yum install nodejs
Use SSH to log into your server as root.
Run the following to make sure that you have the latest version of gcc, which you will need to compile it.
yum install gcc gcc-c++
Run the following commands to download the source file and compile it:
cd ~ wget https://nodejs.org/dist/v0.12.6/node-v0.12.6.tar.gz tar xzvf node-v* && cd node-v* ./configure make make install
After you've installed Node.js using one of the methods above, make sure to check the installation to be sure that it was installed correctly.
Run the following command:
node --version
And you should see something like
v0.12.6