First, describe the Node Js environment requirements and check whether it is suitable for the node Js installation:
 GCC 4.2 or newer G++ 4.2 or newer Python 2.6 or 2.7 GNU Make 3.81 or newer libexecinfo(FreeBSD and OpenBSD only)
To view the release version:

cat /etc/redhat -release

To view GCC:

rpm -q gcc rpm -q gcc-c++

Installation of GCC, etc.:

yum -y install gcc gcc-c++ kernel-devel

To view the python version:

python -V

Using the package tool to install can basically solve subsequent installation failures:
 yum -y update && yum -y groupinstall "Development Tools"
Download Node Js:

First, go to the official website to find a suitable 32-bit or 64 bit package, https://nodejs.org/download
I use 64 bit: http://nodejs.org/dist/v0.12.4/node-v0.12.4-sunos-x64.tar.gz

Install the node Js:
 cd /usr/src wget  http://nodejs.org/dist/v0.12.4/node-v0.12.4-sunos-x64.tar.gz tar -xf node-v0.12.4-sunos-x64.tar.gz cd node-v0.12.4-sunos-x64 ./configure make make install
Check whether the installation is successful:
 node -v npm -v
Last modification: November 17, 2017
If you think my article is useful to you, please feel free to appreciate it