在Mac OS Sierra上使用brew安装节点失败 [英] Installing node with brew fails on Mac OS Sierra

查看:62
本文介绍了在Mac OS Sierra上使用brew安装节点失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在macOS Sierra上安装带有自制软件的节点. 我跑

I'm trying to install node with homebrew on macOS Sierra. I run

 brew install node

在看似成功的安装之后,尝试运行node时得到以下信息:

After a seemingly successful install I get the following when trying to run node:

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

推荐答案

这是一系列基于 this @robertklep和@vovkasm建议的链接.

This is the series of incantations that eventually worked for me based on this link suggested by @robertklep and @vovkasm.

brew uninstall --force node
brew uninstall icu4c && brew install icu4c
brew unlink icu4c && brew link icu4c --force
brew install node

我不确定是否全部需要它们,但是鉴于我无法将机器恢复为以前的状态...我将在此处保留此信息,也许对其他人会有用.

I'm not sure if they're all needed, but given that I can't get my machine in the previous state... I'll just leave this info here, maybe it'll be useful for somebody else.

这篇关于在Mac OS Sierra上使用brew安装节点失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆