NPM: The “ld: library not found for -lgcc_s.10.5” on On OS X El Capitan?

那年仲夏 提交于 2019-12-02 18:15:12

I ran into this problem after upgrading to Node 4.1.0 (OS X 10.10.5) and didn't have any luck after reinstalling from the official package. For what it's worth, this solved it for me:

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

(Originally found here.)

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

I also had this problem. Turns out I had upgraded Xcode but never rebooted. After reboot I was able to npm install successfully.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!