dyld: Library not loaded: /usr/local/opt/icu4c/lib/libicui18n.62.dylib error running php after installing node with brew on Mac

前端 未结 27 1345
孤城傲影
孤城傲影 2020-11-27 09:02

I installed node using homebrew (Mojave), afterwards php stoped working and if I try to run php -v I get this error:

php -v
dyld: Library not lo         


        
27条回答
  •  南方客
    南方客 (楼主)
    2020-11-27 09:46

    Run npm version, if you see the same error, upgrade npm.

    brew upgrade npm.

    ==> Upgrading 1 outdated package, with result:
    npm 8.1.2 -> 10.3.0
    ==> Upgrading npm
    ==> Installing dependencies for node: icu4c
    ==> Installing node dependency: icu4c
    

    Credits

提交回复
热议问题