firebase-tools “Error: certificate has expired”

后端 未结 7 2397
终归单人心
终归单人心 2021-02-18 13:02

This morning I tried to deploy my react project to firebase hosting but I received this error:

Error: Server Error. certificate has expired

The

7条回答
  •  别那么骄傲
    2021-02-18 13:40

    I had an old version of firebase installed that was not allowing the new CLI to run correctly. I had to manually delete the old version, reinstall the new version, and then everything worked fine. Here's how I did it:

    1. Run which firebase in your terminal to see where your firebase npm package is saved.
    2. Delete that folder.
    3. Run npm i -g firebase-tools@latest
    4. Run firebase init and you should be up and running again without any errors.

提交回复
热议问题