-
wget https://nodejs.org/dist/v4.2.4/node-v4.2.4.tar.gz
解压:tar -xvf node-v4.2.4.tar.gz
cd node-v4.2.4
./configure
make
make install
遇到的问题是 WARNING: C++ compiler too old, need g++ 4.8 or clang++ 3.4 (CXX=g++)
解决:
sudo curl > /etc/yum.repos.d/slc6-scl.repo
sudo rpm --import
sudo yum install -y devtoolset-3
scl enable devtoolset-3 bash