1.安装nodejs编译环境

yum -y install gcc make gcc-c++ openssl-devel wget
2.下载以及解压node
wget https://nodejs.org/dist/v4.4.2/node-v4.4.2.tar.gz
tar -zxvf node-v4.4.2.tar.gz
cd node-v4.4.2

3.编译以及安装
.configure
make && make install

4.查看安装的版本
node -v

会出现 v4.4.2

Comments are closed.

Post Navigation