为什么@angular/fire 显示:'服务器错误。证书已过期”,当我运行时: ng add @angular/fire?

Rap*_*tro 8 firebase angular

角度版本:

@angular-devkit/architect         0.803.22
@angular-devkit/build-angular     0.803.22
@angular-devkit/build-optimizer   0.803.22
@angular-devkit/build-webpack     0.803.22
@angular-devkit/core              8.3.22
@angular-devkit/schematics        8.3.22
@angular/cli                      8.3.22
@angular/fire                     5.3.0
@ngtools/webpack                  8.3.22
@schematics/angular               8.3.22
@schematics/update                0.803.22
rxjs                              6.4.0
typescript                        3.5.3
webpack                           4.39.2
Run Code Online (Sandbox Code Playgroud)

1.什么是'服务器错误。证书已过期'是什么意思?
2. 我该如何解决?

~~~~编辑~~~~

  • 我擦除了我的硬盘并安装了一个全新的操作系统;还是行不通。
  • 在 angular/angularfire git 页面打开了一个问题:https : //github.com/angular/angularfire/issues/2285
  • 发现 angular/fire package.JSON 使用 firebase 工具 6.10.0,当 firebase 工具达到 7.12.1 时试图通过强制项目使用 package.json 中的分辨率解析较新版本的 firebase-tools 并在@wSedlacek 在 GitHub 上的建议。没用。
  • 我将系统时间更改为发生此问题之前,现在可以使用,但问题仍未解决,因为每次要启动项目时将系统时间回滚到 2020 年 1 月 4 日是一个小不便。
  • @wSedlacek 发现 HTTPS 证书即将过期,因为 package.json 中旧版本的 firebase-tools 的证书已于 2020 年 1 月 5 日过期。

这个问题可能是相关的,因为它同时开始发生: 为什么 angular fire 说我没有登录,即使 firebase 工具说我是?

这是错误的图片: 错误图片

Pus*_*ama 5

这可能是由于旧版本的 Firebase CLI 导致的问题。
先试试这个命令npm i -g firebase-tools@latest,然后运行ng add @angular/fire

  • 这在技术上是正确的,它与使用旧版本的 firebase-tools 的 @angular fire 有关。 (2认同)