Error referenced from node

我的报错信息如下:

ActionView::Template::Error (dyld: Library not loaded: /usr/local/opt/icu4c/lib/libicui18n.60.dylib
  Referenced from: /usr/local/bin/node
  Reason: image not found
):

解决方案:

  1. brew uninstall --force node # 可能会失败, 看错误提示, 我的提示需要运行(brew uninstall --ignore-dependencies node)
  2. brew uninstall icu4c && brew install icu4c # 这行执行有错误或警告提示,先不管
  3. brew unlink icu4c && brew link icu4c –force # 这行执行有错误或警告提示,先不管
  4. brew install node # 安装node
  5. node -v # 如果成功显示node的版本了,安装成功, 问题得到解决.
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容