Installing node with brew fails on Mac OS Sierra

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

提交回复
热议问题