Homebrew node installation fails on cannot link c-ares

Viewed 692

If I run brew install node I get this error:

==> Installing dependencies for node: c-ares, icu4c, libnghttp2, libuv and openssl@1.1 Error: Cannot link c-ares Another version is already linked: /usr/local/Cellar/c-ares/1.17.1

Anybody know how to resolve this?

1 Answers

Hm, it appears Homebrew tried to upgrade c-ares from version 1.17.1 to 1.18.1 but failed for some reason. Try running brew upgrade c-ares before brew install node.

If that doesn't work, what is your output for brew list --versions c-ares? Perhaps you have multiple c-ares versions installed. If that is the case, run brew unlink c-ares to unlink the old version and then brew link c-ares to link the newer one. The old version can be uninstalled by running brew cleanup c-ares

Related