【问题标题】:Getting this error when i run npm intall firebase ,how do i fix [closed]当我运行 npm install firebase 时出现此错误,我该如何解决[关闭]
【发布时间】:2020-11-18 13:21:22
【问题描述】:

当我运行 npm i firebase 时,我正在尝试在我的 React 项目中安装 firebase,但出现此错误

npm ERR! Unexpected end of JSON input while parsing near '...","@firebase/messagin'

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\HP\AppData\Roaming\npm-cache\_logs\2020-11-18T12_47_18_681Z-debug.log

【问题讨论】:

    标签: reactjs firebase


    【解决方案1】:

    尝试运行 npm cache clean --force,然后又是npm i firebase

    【讨论】:

    • 在运行npm cache clean --forcenpm i firebase 之后我得到了这个错误npm ERR! Response timeout while trying to fetch https://registry.npmjs.org/@firebase%2fauth (over 30000ms) npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\HP\AppData\Roaming\npm-cache\_logs\2020-11-18T13_40_46_510Z-debug.log
    猜你喜欢
    • 1970-01-01
    • 2015-07-10
    • 1970-01-01
    • 2020-10-24
    • 1970-01-01
    • 2021-04-03
    • 2023-02-04
    • 2021-08-01
    • 1970-01-01
    相关资源
    最近更新 更多