报错解决历程dyld: Library not loaded:

2020-05-22  本文已影响0人  欢欢小天使K

我的解决办法是文章末尾的brew update && brew upgrade一行命令解决的,前边的可以跳过不看。
要解决的问题:

image.png

—————————————————————
执行brew upgrade npm

image.png
没用!

继续......
—————————————————————
brew update
没用!

继续.......
—————————————————————
brew info icu4c

image.png
然后
cd /usr/local/Cellar/icu4c/66.1/lib
cp ./libicui18n.66.dylib /usr/local/opt/icu4c/lib/
提示 image.png
附注Linuxcp命令 image.png

没用!

继续......
—————————————————————
brew reinstall yarn
有报错

Error: The `brew link` step did not complete successfully
The formula built, but is not symlinked into /usr/local
Could not symlink share/doc/node/gdbinit
Target /usr/local/share/doc/node/gdbinit
is a symlink belonging to node@12. You can unlink it:
  brew unlink node@12

如图

image.png
然后1、rm -rf /usr/local/lib/node_modules/npm,再2、brew link node
在第二步报错
image.png
然后我执行了brew unlink node@12
重新尝试brew link node,输出了Linking /usr/local/Cellar/node/14.3.0... 204 symlinks created
但,还是没有解决掉我的问题!

继续......
—————————————————————
brew update && brew upgrade🤣

image.png
庆祝🏜🥰🥰🥰🏖
踏破铁鞋无觅处,蓦然回首,那人却在灯火阑珊处
兜兜转转,这一行命令就解决了问题😝
上一篇 下一篇

猜你喜欢

热点阅读