This was my solution, and it worked:
Distrubution url: Distr: https://nodejs.org/dist/v4.2.1/node-v4.2.1.tar.gz (currently v4.2.1)
Unpack the package (tar Jxf node -v4.2.1.tar.xz).
Some packages may be too old and may cause problems during installation. cd to the unzipped file and run "./configure". if the "warming" C ++ compiler is too old, you need g ++ 4.8 or clang ++ 3.4 ", you need to run the following commands:
curl http://linuxsoft.cern.ch/cern/scl/slc6-scl.repo > /etc/yum.repos.d/slc6-scl.repo rpm --import http://ftp.mirrorservice.org/sites/ftp.scientificlinux.org/linux/scientific/51/i386/RPM-GPG-KEYs/RPM-GPG-KEY-cern yum install -y devtoolset-3
And to use it without having to set environment variables, run the following command:
scl enable devtoolset-3 bash
Now restart the process:
./configure make make install
source share