【问题标题】:spawn ENOENT error installing Zombie.js @contextify node-gyp rebuild Macspawn ENOENT 错误安装 Zombie.js @contextify node-gyp rebuild Mac
【发布时间】:2014-11-29 18:33:09
【问题描述】:

我正在尝试在 mac osx 10.9.5 上安装 Zombie.js:

npm install zombie --save-dev

并因此收到此错误:

Zacks-MacBook-Air:zackfischmann zackfischmann$ npm install zombie --save-dev

> ws@0.4.32 install /Users/zackfischmann/projects/zackfischmann/node_modules/zombie/node_modules/ws
> (node-gyp rebuild 2> builderror.log) || (exit 0)


> contextify@0.1.9 install /Users/zackfischmann/projects/zackfischmann/node_modules/zombie/node_modules/jsdom/node_modules/contextify
> node-gyp rebuild

gyp ERR! configure error 
gyp ERR! stack Error: spawn ENOENT
gyp ERR! stack     at errnoException (child_process.js:1001:11)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:792:34)
gyp ERR! System Darwin 13.4.0
gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/zackfischmann/projects/zackfischmann/node_modules/zombie/node_modules/jsdom/node_modules/contextify
gyp ERR! node -v v0.10.32
gyp ERR! node-gyp -v v1.0.2
gyp ERR! not ok 
npm ERR! Darwin 13.4.0
npm ERR! argv "node" "/usr/local/bin/npm" "install" "zombie" "--save-dev"
npm ERR! node v0.10.32
npm ERR! npm  v2.1.2
npm ERR! code ELIFECYCLE

npm ERR! contextify@0.1.9 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the contextify@0.1.9 install script.
npm ERR! This is most likely a problem with the contextify package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-gyp rebuild
npm ERR! You can get their info via:
npm ERR!     npm owner ls contextify
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /Users/zackfischmann/projects/zackfischmann/npm-debug.log

我正在使用:

npm 2.1.2
node 0.10.32
python 2.7.5
gcc 4.2.1

我已经设置好了:

node-gyp --python /path/to/python2.7
npm config set python /path/to/executable/python2.7

关于出了什么问题以及如何解决问题有什么建议吗?谢谢!

【问题讨论】:

    标签: node.js macos zombie.js node-gyp contextify


    【解决方案1】:

    我认为这是出错的相关部分:

    gyp ERR! node-gyp -v v1.0.2
    gyp ERR! not ok 
    

    spawn ENONENT 表示某些节点​​脚本正在尝试执行文件,但找不到它。在这种情况下,它的 node-gyp。

    可能是您全局安装了 node-gyp 还是安装了 gyp?我认为这与 contextify 有冲突

    Error installing node-gyp on ubuntu

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2012-08-12
      • 2023-04-09
      • 2014-07-14
      • 2015-08-23
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多