2014-07-09 50 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