Seven easy steps to install nodejs on CentOS.
Note: Node.js v0.12.7 will be installed. This has been specifically tested on CentOS 6.7 (Final)
Run each command one by one and you are done.
# su # yum groupinstall 'Development Tools' # cd /usr/local/src # wget https://nodejs.org/dist/v0.12.7/node-v0.12.7.tar.gz # tar zxvf node-v0.12.7.tar.gz # cd node-v0.12.7 # ./configure && make && make install
Read below for more detailed instructions with screen shots to guide the installation process of nodejs on CentOS for each command.
su on the terminal.
You will be asked to type the root password.
Just enter the root password and hit the
yum groupinstall 'Development Tools' on the terminal.
# yum groupinstall 'Development Tools'
Total download size will be shown, and you will be asked if this is ok. Just enter
Y and hit the
Development Tools has been successfully installed when you see a similar message.
cd /usr/local/src on the terminal.
# cd /usr/local/src
wget https://nodejs.org/dist/v0.12.7/node-v0.12.7.tar.gz on the terminal.
# wget https://nodejs.org/dist/v0.12.7/node-v0.12.7.tar.gz
tar zxvf node-v0.12.7.tar.gz on the terminal.
# tar zxvf node-v0.12.7.tar.gz
cd node-v0.12.7 on the terminal.
# cd node-v0.12.7
Warning: This will take few minutes to complete.
./configure && make && make install on the terminal.
# ./configure && make && make install
NodeJs was successfully installed on CentOS.
Check NodeJs installation by displaying it's version.
node -v on the terminal.
# node -v