ng add @angular/fire 'Server Error. certificate has expired'

≡放荡痞女 提交于 2020-01-16 08:36:06

问题


ng add @angular/fire
....

audited 23085 packages in 14.519s
found 0 vulnerabilities

Server Error. certificate has expired

Using last versions :
Angular CLI: 8.3.21
Node: 10.16.0
Angular: 8.2.14
firebase-tools : 7.11.0

Already tried logout and login to firebase again but it doesn't solve the problem


回答1:


I was trying to add @angular/fire to my project just to deploy it to firebase but it seems like there is a problem with "ng" commands when using firebase. The only way i found to resolve this is using the native commands of firebase-tools :

  • firebase init
    or firebase use --add "myprojectId"
  • firebase deploy



回答2:


try rolling the date on your system back to January 4th and run ng add @angular/fire, I'm having a similar issue and this fixed it however I would still like to know how to use this command and have the correct system time.



来源:https://stackoverflow.com/questions/59654027/ng-add-angular-fire-server-error-certificate-has-expired

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!