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 was triggered for me after a
brew upgrade
andbrew update
ran. I was able to fix it by simply re-installing the two items flagged as problems (which made sense to me):None of the above worked for me. I'm using High Sierra.
What fixed it for me was
brew upgrade
For me it was apparently a problem with the
icu4c
installation from brew.will reinstall
icu4c
.if you don't have it installed,
In my case,
brew upgrade node
resolve the problem :)First I uninstall node and icu4c, force to uninstall all versions
After install version 8 of Node
If it already install, please just upgrade
And enter
v8.11.1
it seems like your icu4u Reference path is not set properly
first check you might instal icu4c or not by putting below comment in comment promt
brew info icu4c
or else reinstall
brew reinstall icu4c
If you need to have this software first in your PATH run:
echo 'export PATH="/usr/local/opt/icu4c/bin:$PATH"' >> ~/.bash_profile
hope This might help !!!!!