首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >安装Zombie.js @contextify节点时出错-gyp rebuild Mac

安装Zombie.js @contextify节点时出错-gyp rebuild Mac
EN

Stack Overflow用户
提问于 2014-10-05 14:46:48
回答 1查看 1.3K关注 0票数 0

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

代码语言:javascript
复制
npm install zombie --save-dev

我得到了这个错误的结果:

代码语言:javascript
复制
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

我使用的是:

代码语言:javascript
复制
npm 2.1.2
node 0.10.32
python 2.7.5
gcc 4.2.1

我已经设置了:

代码语言:javascript
复制
node-gyp --python /path/to/python2.7
npm config set python /path/to/executable/python2.7

对于哪里出了问题以及我如何修复它有什么建议吗?谢谢!

EN

回答 1

Stack Overflow用户

发布于 2014-10-09 15:16:21

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

代码语言:javascript
复制
gyp ERR! node-gyp -v v1.0.2
gyp ERR! not ok 

spawn表示某个节点脚本正在尝试执行文件,但找不到该文件。在本例中,它的node-gyp。

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

请参阅Error installing node-gyp on ubuntu

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/26200310

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档