I'm trying to install node with homebrew on macOS Sierra. I run
brew install 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 is the series of incantations that eventually worked for me based on this link suggested by @robertklep and @vovkasm.
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.
Upgrading node fixed a problem.
Try restarting your machine. That helped me.
Nothing worked for me but running this worked
I found a solution that works great over here. I'll briefly give the commands below.
First, cd into the homebrew formula directory:
Git log:
Choose the commit hash that matches the version you need. I needed version 61.1, thus chose the
6d9815
commit:Reinstall:
Switch:
That fixed it for me.
Credit: hanxue