NPM:为"-lgcc_s.10.5找不到ld:库".在OS X El Capitan上? [英] NPM: The "ld: library not found for -lgcc_s.10.5" on On OS X El Capitan?

查看:120
本文介绍了NPM:为"-lgcc_s.10.5找不到ld:库".在OS X El Capitan上?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我使用npm install安装此存储库的依赖项时,我遇到了一个这样的错误:

When I use npm install to install dependencies of this repository, I encountered an error like this:

> fsevents@0.3.8 install /Users/hanfeisun/Workspace/vue-webpack-example/node_modules/webpack/node_modules/watchpack/node_modules/chokidar/node_modules/fsevents
> node-gyp rebuild

  SOLINK_MODULE(target) Release/.node
ld: library not found for -lgcc_s.10.5
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [Release/.node] Error 1
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:269:23)
gyp ERR! stack     at ChildProcess.emit (events.js:110:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:1074:12)
gyp ERR! System Darwin 15.0.0
gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/hanfeisun/Workspace/vue-webpack-example/node_modules/webpack/node_modules/watchpack/node_modules/chokidar/node_modules/fsevents
gyp ERR! node -v v0.12.7
gyp ERR! node-gyp -v v2.0.1
gyp ERR! not ok 
npm WARN optional dep failed, continuing fsevents@0.3.8

但是,安装仍然成功完成.当我使用npm run时,该应用程序仍然可以正常运行.有人对node-gyp rebuild在这里有什么想法吗?为什么即使node-gyp在这里抛出错误,该项目也能正常运行?

However, the installation is still finished successfully. And when I use npm run, the app still works well. Does anyone have ideas about what node-gyp rebuild does here? And why the project works well even node-gyp throws error here?

推荐答案

在我从官方pkg重新安装了node.js之后,该问题就解决了.

It is solved after I reinstalled node.js from the official pkg.

这篇关于NPM:为"-lgcc_s.10.5找不到ld:库".在OS X El Capitan上?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆