2014-10-05 235 views
0

我想在Mac OSX上安裝10.9.5 Zombie.js:產卵ENOENT錯誤安裝Zombie.js @contextify節點GYP重建的Mac

npm install zombie --save-dev 

,並正在此錯誤的結果:

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

> [email protected] install /Users/zackfischmann/projects/zackfischmann/node_modules/zombie/node_modules/ws 
> (node-gyp rebuild 2> builderror.log) || (exit 0) 


> [email protected] 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! [email protected] install: `node-gyp rebuild` 
npm ERR! Exit status 1 
npm ERR! 
npm ERR! Failed at the [email protected] 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 

關於發生了什麼問題以及如何修復它的任何建議?謝謝!

回答

0

我認爲這是一個不順心的相關部分:

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

產卵ENONENT意味着一些節點腳本試圖exec的文件,但無法找到它。在這種情況下,它的node-gyp。

難道你有node-gyp全局安裝或gyp安裝?我認爲這與衝突有衝突

請參閱Error installing node-gyp on ubuntu