【问题标题】:Can't install google cloud functions emulator无法安装谷歌云功能模拟器
【发布时间】:2019-04-20 22:42:02
【问题描述】:

我正在尝试将 firebase 更新到最新版本并遇到错误。这指出我的函数模拟器有问题:

$ npm install @google-cloud/functions-emulator
npm ERR! Unexpected end of JSON input while parsing near '..."retry-request":"^4.0'

这发生在最近对 firebase 的更新之后。我做错了什么还是我应该报告这个错误?

尝试了多种解决方案,包括完全卸载 npm、node 甚至 vsc。正在更新 npm,尝试专门安装云函数模拟器...在某些依赖文件中总是出现相同的错误。

这是error log

88 error Unexpected end of JSON input while parsing near '..."retry-request":"^4.0'

我只是想将 firebase 更新到最新版本。现在一切都坏了:D

非常感谢任何帮助。

【问题讨论】:

    标签: firebase npm google-cloud-platform google-cloud-functions


    【解决方案1】:

    由于文件下载损坏而发生错误(尝试在火车上安装 Firebase 更新)。

    解决方法:

    npm cache clean --force

    然后重新安装包。

    【讨论】:

      猜你喜欢
      • 2019-10-28
      • 2021-07-04
      • 1970-01-01
      • 2020-09-22
      • 2017-08-15
      • 2021-02-26
      • 2021-04-12
      • 2016-05-08
      • 2020-11-26
      相关资源
      最近更新 更多