Installing node with brew fails on Mac OS Sierra

后端 未结 21 2146
执笔经年
执笔经年 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:57

    I found a solution that works great over here. I'll briefly give the commands below.

    First, cd into the homebrew formula directory:

    cd $(brew --prefix)/Homebrew/Library/Taps/homebrew/homebrew-core/Formula
    

    Git log:

    git log --follow icu4c.rb
    

    Choose the commit hash that matches the version you need. I needed version 61.1, thus chose the 6d9815 commit:

    git checkout -b icu4c-61.1 6d9815
    

    Reinstall:

    brew reinstall ./icu4c.rb
    

    Switch:

    brew switch icu4c 61.1
    

    That fixed it for me.

    Credit: hanxue

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

    In my case, brew upgrade node resolve the problem :)

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

    I fixed by

    cd /usr/local/Cellar
    rm -rf node*/
    rm -rf icu4c/
    brew install node
    
    0 讨论(0)
提交回复
热议问题