手记编程网

Mac下使用Brew安装node出错

错误信息如下:

node -v 
dyld: Library not loaded: /usr/local/opt/icu4c/lib/libicui18n.58.dylib 
Referenced from: /usr/local/bin/node 
Reason: image not found 
Abort trap: 6

经过在网上搜索,终于找到解决办法。

brew uninstall –force node 
brew uninstall icu4c && brew install icu4c 
brew unlink icu4c && brew link icu4c –force 
brew install node
最新文章