我已经使用 node-gyp v0.9.5 安装了 nodejs v0.8.11,但是当我尝试安装其他需要编译的模块时,我收到以下错误:
# npm install net-ping
npm install net-ping
npm http GET https://registry.npmjs.org/net-ping
npm http 304 https://registry.npmjs.org/net-ping
npm http GET https://registry.npmjs.org/raw-socket
npm http 408 https://registry.npmjs.org/raw-socket
npm ERR! registry error parsing json
npm http GET https://registry.npmjs.org/raw-socket
npm http GET https://registry.npmjs.org/raw-socket
> raw-socket@1.1.4 install /root/testNode/node_modules/net-ping/node_modules/raw-socket
> node-gyp rebuild
make: Entering directory `/root/testNode/node_modules/net-ping/node_modules/raw-socket/build'
make: Nothing to be done for `all'.
make: Leaving directory `/root/testNode/node_modules/net-ping/node_modules/raw-socket/build'
net-ping@1.1.4 node_modules/net-ping
âââ raw-socket@1.1.4
相同的模块以相同的版本安装在另一台机器上。什么会导致这样的问题?!