node.js - npm install fibers 显示错误

标签 node.js node-fibers

当我尝试使用 npm install fibers 安装 fibers 时出现以下错误,我还尝试了堆栈溢出中的其他解决方案,但都没有帮助,请帮助

我正在使用 OSX 10.8.5

> fibers@1.0.1 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! fibers@1.0.1 install: `node ./build.js`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the fibers@1.0.1 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" "fibers@1.0.1" "-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

最佳答案

这对我有用:

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

关于node.js - npm install fibers 显示错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24649549/

相关文章:

node.js - Mongoose 在 get 路由中删除和创建

node.js - npm 在 Windows 10 上非常慢

node.js - 连接到 Cloud 9 上的 mongodb 时出错

javascript - Express - 使用curl 添加 JSON 有效负载导致解析错误

javascript - Meteor(Fibers)循环和回调

javascript - 如何使用 Express Nodejs 返回 Json 列表的子集作为响应

meteorjs 中的 imagemagick(借助 meteor-router 和 fibers)

javascript - 如何使用 Node.js Fibers 运行代码

javascript - 从服务器上的 Meteor 集合中获取项目会抛出 "Can' t wait without Fiber”

meteor - 与光纤模块相关的 Meteor 部署问题