First go to the official Node.js websitehttps://nodejs.org/en/download/, and find the download link in the Source Code section.
Download the source code
# cd /usr/local/src
# wget https://nodejs.org/dist/v6.10.0/node-v6.10.0.tar.gz
Install gcc and gcc-c++ for compilation
# yum install gcc gcc-c++
Extract and compile
# cd /usr/local/src
# tar zxvf node-v6.10.0.tar.gz
# cd node-v6.10.0
# ./configure
# make && make install
Check the version
#node –v
v6.10.0