美文网首页
npm install 报错

npm install 报错

作者: 李颖轩_LiYingxuan | 来源:发表于2017-10-17 14:06 被阅读1816次

    报错信息:
    dyld: Library not loaded: /usr/local/opt/icu4c/lib/libicui18n.58.dylib
    Referenced from: /usr/local/bin/node
    Reason: image not found
    [1] 88879 abort npm install

    我这里产生的原因可能是新安装了php7.1。

    解决方案:

    $ brew uninstall --force node 
    $ brew uninstall icu4c && brew install icu4c // 这行执行有错误或警告提示,先不管
    $ brew unlink icu4c && brew link icu4c –force // 这行执行有错误或警告提示,先不管
    $ brew install node
    $ node -v // 如果成功显示node的版本了,表示搞定
    

    The end.

    相关文章

      网友评论

          本文标题:npm install 报错

          本文链接:https://www.haomeiwen.com/subject/ohrduxtx.html