Node.js   发布时间:2022-04-24  发布网站:大佬教程  code.js-code.com
大佬教程收集整理的这篇文章主要介绍了node.js – NPM:在OS X El Capitain上的“ld:library not found for -lgcc_s.10.5”大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
当我使用Npm安装来安装 this repository的依赖项时,我遇到这样的错误

> 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运行时,应用程序仍然运行良好.有没有人有关于什么节点gyp重建在这里的想法?为什么这个项目的效果很好,甚至node-gyp在这里抛出错误

解决方法

升级到Node 4.1.0(OS X 10.10.5)后遇到这个问题,从官方软件包重新安装后没有任何运气.为什么值得,这解决了我:

cd /usr/local/lib
sudo ln -s ../../lib/libSystem.b.dylib libgcc_s.10.5.dylib

(原来是here)

大佬总结

以上是大佬教程为你收集整理的node.js – NPM:在OS X El Capitain上的“ld:library not found for -lgcc_s.10.5”全部内容,希望文章能够帮你解决node.js – NPM:在OS X El Capitain上的“ld:library not found for -lgcc_s.10.5”所遇到的程序开发问题。

如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。