Installing node with brew fails on Mac OS Sierra

后端 未结 21 2144
执笔经年
执笔经年 2021-01-30 05:50

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

相关标签:
21条回答
  • 2021-01-30 06:32

    Seems file /usr/local/opt/icu4c/lib/libicui18n.58.dylib does not exists in you system.

    Please ensure that icu4c installed with Homebrew.

    1. brew info icu4c
    2. If already installed, try reinstall: brew reinstall icu4c
    3. If not installed, try install: brew install icu4c
    0 讨论(0)
  • 2021-01-30 06:36

    brew uninstall --force node
    brew uninstall --ignore-dependencies icu4c
    brew unlink icu4c && brew link icu4c --force
    brew install node

    0 讨论(0)
  • 2021-01-30 06:36

    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.

    0 讨论(0)
  • 2021-01-30 06:37

    Try restarting your machine. That helped me.

    0 讨论(0)
  • 2021-01-30 06:39

    For high seirra, just "brew upgrade" makes magic!

    0 讨论(0)
  • 2021-01-30 06:40

    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
    
    0 讨论(0)
提交回复
热议问题