1. node.js

https://nodejs.org/en/download/

需要python2.6 or 2.7

1.1. 编译好的文件安装

wget https://nodejs.org/dist/v4.2.2/node-v4.2.2-linux-x64.tar.gz --no-check-certificate
tar zxvf node-v4.2.2-linux-x64.tar.gz
mv node-v4.2.2-linux-x64 node
./node/bin/npm --version

1.2. 源码安装

wget https://nodejs.org/dist/v4.2.2/node-v4.2.2.tar.gz --no-check-certificate

tar zxvf node-v4.2.2.tar.gz
mv node-v4.2.2-linux-x64 node
./node/bin/npm --version

1.3. Q

Error: Python executable "python2" is v2.4.3, which is not supported by gyp.

2. 版本选择

bluehostpython版本是Python 2.4.3,node-v4.2.2需要Python 2.6 or 2.7

results matching ""

    No results matching ""