今天想在Mac下安装Appinum测试环境。在安装node后,想要执行node -v命令查看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
再次执行node -v命令,问题已经解决。
node -v
v8.8.1