【问题标题】:Unabe to install firebase-tools via npm in cli Kali [duplicate]无法在 cli Kali 中通过 npm 安装 firebase-tools [重复]
【发布时间】:2021-06-16 13:24:26
【问题描述】:

在终端输入后

sudo install -g firebase-tools

我收到以下错误

npm ERR! code FETCH_ERROR
npm ERR! errno FETCH_ERROR
npm ERR! invalid json response body at https://registry.npmjs.org/exegesis reason: Unexpected end of JSON input

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2021-03-19T04_41_56_097Z-debug.log

【问题讨论】:

    标签: reactjs firebase


    【解决方案1】:

    我的情况完全一样。 切换注册表(如下)并尝试几次后, 我能够安装 firebase-tools。

    npm 配置设置注册表“http://r.cnpmjs.org/”

    Installing create-react-app gives npm ERR! shasum check failed and npm ERR! Unexpected end of JSON input while parsing near '...mojOzGIEI2rg0m24Yb5Oq'

    【讨论】:

    猜你喜欢
    • 2018-01-17
    • 2017-06-11
    • 2018-07-02
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-01-19
    • 2021-04-09
    相关资源
    最近更新 更多