linux下编译安装node:
yum install gcc yum install gcc-c++ yum install openssl* yum install -y bzip2* yum -y install python ./configure --prefix=/usr/local/node make && make install ln -s /usr/local/node/bin/* /usr/local/bin cd /usr/local/node/lib/node_modules/npm ./configure make && make install
2、修改profile文件:
#vi /etc/profile
在里面加入:
export PATH="$PATH:/opt/au1200_rm/build_tools/bin"
让环境变量立即生效需要执行如下命令:
#source /etc/profile ln -s /usr/bin/npm /usr/local/node/bin/npm