V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
yakczh
V2EX  ›  Node.js

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

  •  
  •   yakczh · 2013-04-01 15:28:10 +08:00 · 4764 次点击
    这是一个创建于 4258 天前的主题,其中的信息可能已经有所发展或是发生改变。
    npm install node-proxy
    npm http GET https://registry.npmjs.org/node-proxy
    npm http 304 https://registry.npmjs.org/node-proxy

    > [email protected] 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! [email protected] install: `node-gyp configure build`
    npm ERR! `sh "-c" "node-gyp configure build"` failed with 1
    npm ERR!
    npm ERR! Failed at the [email protected] 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: [email protected] 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
    1 条回复    1970-01-01 08:00:00 +08:00
    lch21
        1
    lch21  
       2013-04-24 23:18:01 +08:00
    python 版本太低,装2.7.4
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   1060 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 20ms · UTC 22:19 · PVG 06:19 · LAX 14:19 · JFK 17:19
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.