我的解決辦法是文章末尾的brew update && brew upgrade
一行命令解決的踢步,前邊的可以跳過(guò)不看癣亚。
要解決的問(wèn)題:
—————————————————————
執(zhí)行brew upgrade npm
沒(méi)用!
繼續(xù)......
—————————————————————
brew update
沒(méi)用获印!
繼續(xù).......
—————————————————————
brew info icu4c
然后
cd /usr/local/Cellar/icu4c/66.1/lib
cp ./libicui18n.66.dylib /usr/local/opt/icu4c/lib/
提示
附注Linux
cp
命令沒(méi)用述雾!
繼續(xù)......
—————————————————————
brew reinstall yarn
有報(bào)錯(cuò)
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
如圖
然后1、
rm -rf /usr/local/lib/node_modules/npm
兼丰,再2玻孟、brew link node
在第二步報(bào)錯(cuò)
然后我執(zhí)行了
brew unlink node@12
重新嘗試
brew link node
,輸出了Linking /usr/local/Cellar/node/14.3.0... 204 symlinks created
但鳍征,還是沒(méi)有解決掉我的問(wèn)題黍翎!
繼續(xù)......
—————————————————————
brew update && brew upgrade
??
慶祝??????????
踏破鐵鞋無(wú)覓處,驀然回首艳丛,那人卻在燈火闌珊處
兜兜轉(zhuǎn)轉(zhuǎn)匣掸,這一行命令就解決了問(wèn)題??