问题
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