报错信息:
dyld: Library not loaded: /usr/local/opt/icu4c/lib/libicui18n.58.dylib
Referenced from: /usr/local/bin/node
Reason: image not found
[1] 88879 abort npm install
我这里产生的原因可能是新安装了php7.1。
解决方案:
$ brew uninstall --force node
$ brew uninstall icu4c && brew install icu4c // 这行执行有错误或警告提示,先不管
$ brew unlink icu4c && brew link icu4c –force // 这行执行有错误或警告提示,先不管
$ brew install node
$ node -v // 如果成功显示node的版本了,表示搞定
The end.
网友评论