目录

Mac下使用npm出错

目录

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

再次执行node -v命令,问题已经解决。

node -v v8.9.1