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
Seems file /usr/local/opt/icu4c/lib/libicui18n.58.dylib
does not exists in you system.
Please ensure that icu4c
installed with Homebrew.
brew info icu4c
brew reinstall icu4c
brew install icu4c
brew uninstall --force node
brew uninstall --ignore-dependencies icu4c
brew unlink icu4c && brew link icu4c --force
brew install node
It's as easy as a common software, just download installation package from official site:NodeJS
and then download a recommended version(currently 8.11.3, end with .pkg
), install it as a common software, then u can use it. I tried so many methods, and only this works for me.
Try restarting your machine. That helped me.
For high seirra, just "brew upgrade" makes magic!
Well I got this error trying to install @angular/cli
, realized node might be out of date. Following @mircealungu 's exact steps didn't quite work for me, here is the modified version that worked for me.
brew uninstall --ignore-dependencies --force node
brew uninstall --ignore-dependencies --force icu4c
brew install icu4c
brew unlink icu4c && brew link icu4c --force
brew install node