npm install node-proxy 这个一直安装不上,是什么原因?

2013-04-01 15:28:10 +08:00
 yakczh
npm install node-proxy
npm http GET https://registry.npmjs.org/node-proxy
npm http 304 https://registry.npmjs.org/node-proxy

> node-proxy@0.6.0 install /srv/node/jsgen/node_modules/node-proxy
> node-gyp configure build

gyp ERR! configure error Error: Command failed: Unknown option: --
gyp ERR! configure error usage: python [option] ... [-c cmd | -m mod | file | -] [arg] ...
gyp ERR! configure error Try `python -h' for more information.
gyp ERR! configure error
gyp ERR! configure error at ChildProcess.exithandler (child_process.js:536:15)
gyp ERR! configure error at ChildProcess.EventEmitter.emit (events.js:91:17)
gyp ERR! configure error at maybeClose (child_process.js:634:16)
gyp ERR! configure error at Socket.ChildProcess.spawn.stdin (child_process.js:805:11)
gyp ERR! configure error at Socket.EventEmitter.emit (events.js:88:17)
gyp ERR! configure error at Socket._destroy.destroyed (net.js:358:10)
gyp ERR! configure error at process.startup.processNextTick.process._tickCallback (node.js:315:13)
gyp ERR! configure error at process.startup.processMakeCallback.process._makeCallback (node.js:243:15)
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 2.6.18-308.el5
npm ERR! command "/usr/local/bin/node" "/usr/local/bin/npm" "install" "node-proxy"
npm ERR! cwd /srv/node/jsgen
npm ERR! node -v v0.9.0
npm ERR! npm -v 1.1.44
npm ERR! code ELIFECYCLE
npm ERR! stack Error: node-proxy@0.6.0 install: `node-gyp configure build`
npm ERR! stack `sh "-c" "node-gyp configure build"` failed with 1
npm ERR! stack at ChildProcess.<anonymous> (/usr/local/lib/node_modules/npm/lib/utils/exec.js:56:20)
npm ERR! stack at ChildProcess.EventEmitter.emit (events.js:91:17)
npm ERR! stack at Process._handle.onexit (child_process.js:674:10)
npm ERR! stack at process.startup.processMakeCallback.process._makeCallback (node.js:238:20)
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /srv/node/jsgen/npm-debug.log
npm ERR! not ok code 0
4662 次点击
所在节点    Node.js
1 条回复
lch21
2013-04-24 23:18:01 +08:00
python 版本太低,装2.7.4

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/64656

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX