模块构建失败:错误:dyld:未加载库:/usr/local/opt/libpng/lib/libpng16.16.dylib

时间:2017-07-14 08:38:24

标签: reactjs homebrew

加载图片时出现以下错误:

Module build failed: Error: dyld: Library not loaded: /usr/local/opt/libpng/lib/libpng16.16.dylib

enter image description here

2 个答案:

答案 0 :(得分:5)

我按照here建议brew install libpng解决了问题。

答案 1 :(得分:0)

据此 https://github.com/BVLC/caffe/issues/3806

我尝试了此命令

brew link --overwrite libpng

它就像一个魅力!! enter image description here