不清楚怎么回事,谢谢指导。
npm http GET https://registry.npmjs.org/now npm http 200 https://registry.npmjs.org/now npm http GET https://registry.npmjs.org/now/-/now-0.8.1.tgz npm http 200 https://registry.npmjs.org/now/-/now-0.8.1.tgz npm http GET https://registry.npmjs.org/socket.io npm http GET https://registry.npmjs.org/node-proxy npm http 200 https://registry.npmjs.org/node-proxy npm http GET https://registry.npmjs.org/node-proxy/-/node-proxy-0.6.0.tgz npm http 200 https://registry.npmjs.org/node-proxy/-/node-proxy-0.6.0.tgz npm http 200 https://registry.npmjs.org/socket.io npm http GET https://registry.npmjs.org/socket.io/-/socket.io-0.9.11.tgz npm http 200 https://registry.npmjs.org/socket.io/-/socket.io-0.9.11.tgz
node-proxy@0.6.0 install /usr/lib/node_modules/now/node_modules/node-proxy node-gyp configure build
npm http GET https://registry.npmjs.org/socket.io-client/0.9.11
npm http GET https://registry.npmjs.org/policyfile/0.0.4
npm http GET https://registry.npmjs.org/redis/0.7.3
gyp http GET http://nodejs.org/dist/v0.8.14/node-v0.8.14.tar.gz
gyp http 200 http://nodejs.org/dist/v0.8.14/node-v0.8.14.tar.gz
npm http 200 https://registry.npmjs.org/policyfile/0.0.4
npm http GET https://registry.npmjs.org/policyfile/-/policyfile-0.0.4.tgz
npm http 200 https://registry.npmjs.org/socket.io-client/0.9.11
npm http GET https://registry.npmjs.org/socket.io-client/-/socket.io-client-0.9.11.tgz
npm http 200 https://registry.npmjs.org/redis/0.7.3
npm http GET https://registry.npmjs.org/redis/-/redis-0.7.3.tgz
npm http 200 https://registry.npmjs.org/socket.io-client/-/socket.io-client-0.9.11.tgz
npm http 200 https://registry.npmjs.org/policyfile/-/policyfile-0.0.4.tgz
npm http 200 https://registry.npmjs.org/redis/-/redis-0.7.3.tgz
gyp WARN install got an error, rolling back install
gyp ERR! configure error
gyp ERR! stack Error: invalid tar file
gyp ERR! stack at Extract.Parse._startEntry (/usr/lib/nodejs/npm/node_modules/tar/lib/parse.js:144:13)
gyp ERR! stack at Extract.Parse._process (/usr/lib/nodejs/npm/node_modules/tar/lib/parse.js:125:12)
gyp ERR! stack at BlockStream.<anonymous> (/usr/lib/nodejs/npm/node_modules/tar/lib/parse.js:46:8)
gyp ERR! stack at BlockStream.EventEmitter.emit (events.js:96:17)
gyp ERR! stack at BlockStream._emitChunk (/usr/lib/nodejs/npm/node_modules/block-stream/block-stream.js:145:10)
gyp ERR! stack at BlockStream.resume (/usr/lib/nodejs/npm/node_modules/block-stream/block-stream.js:58:15)
gyp ERR! stack at Extract.Reader.resume (/usr/lib/nodejs/npm/node_modules/fstream/lib/reader.js:252:34)
gyp ERR! stack at DirWriter.ondrain (stream.js:48:14)
gyp ERR! stack at DirWriter.EventEmitter.emit (events.js:93:17)
gyp ERR! stack at DirWriter._process (/usr/lib/nodejs/npm/node_modules/fstream/lib/dir-writer.js:88:8)
gyp ERR! System Linux 3.2.0-23-generic-pae
gyp ERR! command “node” “/usr/lib/nodejs/npm/node_modules/node-gyp/bin/node-gyp.js” “configure” "build"
gyp ERR! cwd /usr/lib/node_modules/now/node_modules/node-proxy
gyp ERR! node -v v0.8.14
gyp ERR! node-gyp -v v0.7.1
gyp ERR! not ok
npm ERR! node-proxy@0.6.0 install: node-gyp configure build
npm ERR! sh "-c" "node-gyp configure build"
failed with 1
npm ERR!
npm ERR! Failed at the node-proxy@0.6.0 install script.
npm ERR! This is most likely a problem with the node-proxy package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp configure build
npm ERR! You can get their info via:
npm ERR! npm owner ls node-proxy
npm ERR! There is likely additional logging output above.
npm ERR! System Linux 3.2.0-23-generic-pae npm ERR! command “nodejs” “/usr/bin/npm” “install” "now" npm ERR! cwd /usr/lib/nodejs npm ERR! node -v v0.8.14 npm ERR! npm -v 1.1.65 npm ERR! code ELIFECYCLE
是我的安装目录有问题吗?
经@朴灵 指导,是网络环境问题,今天早上再装一遍,就成功了。