2014-07-09 44 views
0

當我嘗試使用NPM安裝纖維我有以下錯誤安裝的纖維,而且我試圖在堆棧溢出其他解決方案,但均未幫助,請幫助NPM安裝光纖顯示錯誤

IAM使用OSX 10.8.5

> [email protected] install /usr/local/lib/node_modules/fibers 
> node ./build.js 

gyp ERR! build error 
gyp ERR! stack Error: not found: make 
gyp ERR! stack  at F (/usr/local/lib/node_modules/npm/node_modules/which/which.js:43:28) 
gyp ERR! stack  at E (/usr/local/lib/node_modules/npm/node_modules/which/which.js:46:29) 
gyp ERR! stack  at /usr/local/lib/node_modules/npm/node_modules/which/which.js:57:16 
gyp ERR! stack  at Object.oncomplete (fs.js:107:15) 
gyp ERR! System Darwin 12.5.0 
gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-    

gyp.js" "rebuild" 
gyp ERR! cwd /usr/local/lib/node_modules/fibers 
gyp ERR! node -v v0.10.29 
gyp ERR! node-gyp -v v0.13.1 
gyp ERR! not ok 
Build failed 
npm ERR! [email protected] install: `node ./build.js` 
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 fibers package, 
npm ERR! not with npm itself. 
npm ERR! Tell the author that this fails on your system: 
npm ERR!  node ./build.js 
npm ERR! You can get their info via: 
npm ERR!  npm owner ls fibers 
npm ERR! There is likely additional logging output above. 

npm ERR! System Darwin 12.5.0 
npm ERR! command "/usr/local/bin/node" "/usr/local/bin/npm" "install" "[email protected]" "-g" 
npm ERR! cwd /Users/mac/Documents/node/node-fibers 
npm ERR! node -v v0.10.29 
npm ERR! npm -v 1.4.14 
npm ERR! code ELIFECYCLE 
npm ERR! 
npm ERR! Additional logging details can be found in: 
npm ERR!  /Users/mac/Documents/node/node-fibers/npm-debug.log 
npm ERR! not ok code 0 
+0

你需要爲了安裝這些模塊安裝 「做」。可悲的是我不能告訴你如何在Mac上這樣做。 – masch

+0

我已經制作了,但沒有安裝。類似的錯誤,纖維是罪魁禍首 – Rexford

回答

1

這爲我工作:

npm install --global --production windows-build-tools  
npm install --global node-gyp