首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >npm安装纤程显示错误

npm安装纤程显示错误
EN

Stack Overflow用户
提问于 2014-07-09 17:09:05
回答 5查看 46.2K关注 0票数 14

当我尝试使用以下命令安装光纤时

npm安装

光纤我得到了以下错误,我也尝试了堆栈溢出的其他解决方案,但他们都没有帮助,请帮助

Iam使用OSX 10.8.5

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

回答 5

Stack Overflow用户

发布于 2017-03-23 22:00:01

这对我很有效:

代码语言:javascript
复制
npm install --global --production windows-build-tools    
npm install --global node-gyp
票数 21
EN

Stack Overflow用户

发布于 2018-05-19 22:34:52

在我的例子中,我无法安装纤程,因为我使用了不正确的node版本。我使用了节点10。来自光纤

自述文件

如果您在Linux或Windows7或更高版本上运行NodeJS版本4.x、5.x或6.x,那么您应该能够很好地安装来自npm的光纤。如果您运行的是较旧(或较新)版本的node或其他操作系统,则必须在系统上编译纤程。

所以我降级到了节点6。它安装得很好。

代码语言:javascript
复制
npm i fibers@1.0.15
票数 8
EN

Stack Overflow用户

发布于 2018-05-28 21:38:42

我也处于同样的情况,但在Ubuntu,ASHISH RANJAN为我解决了缺乏

我可以成功地安装它(谢谢!)。但是根据你的日志我可以说你失踪了

..。

我使用Ubuntu 18.04 LTS和Node 10,我是这样做的:

安装

只是为了确认一下。

我对OSX了解不多,但我希望它能对我有所帮助!

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

https://stackoverflow.com/questions/24649549

复制
相关文章

相似问题

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