Installing node with brew fails on Mac OS Sierra

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

    None of the above worked for me. I'm using High Sierra.

    What fixed it for me was brew upgrade

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

    Nothing worked for me but running this worked

    brew link --overwrite node
    
    0 讨论(0)
  • 2021-01-30 06:43

    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.

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

    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

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

    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

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

    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 !!!!!

    0 讨论(0)
提交回复
热议问题