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
None of the above worked for me. I'm using High Sierra.
What fixed it for me was brew upgrade
Nothing worked for me but running this worked
brew link --overwrite node
This error was given to me after migrating machines.
Even though everything was installed, when I went to check node -v
or npm version
, I'd get this error.
What fixed it was brew reinstall icu4c
.
I removed export PATH="/usr/local/opt/icu4c/bin:$PATH"
from my ~/.bash_profile
file and it fixed my problem.
My error was:
dyld: Library not loaded: /usr/local/opt/icu4c/lib/libicui18n.63.dylib
Referenced from: /usr/local/opt/node@10/bin/node
Reason: image not found
Abort trap: 6
My /usr/local/opt/icu4c/lib
contains libicui18n.64.dylib
First I uninstall node and icu4c, force to uninstall all versions
brew uninstall --force --ignore-dependencies node icu4c
After install version 8 of Node
brew install node@8
If it already install, please just upgrade
brew upgrade node@8
And enter
node -v
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 !!!!!