firebase-tools “Error: certificate has expired”

后端 未结 7 2389
终归单人心
终归单人心 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.
    0 讨论(0)
  • 2021-02-18 13:44

    Had the same problem. Change your local clock to before 4th of January 2020

    0 讨论(0)
  • 2021-02-18 13:46

    run npm install --save firebase-functions@latest and make sure to add

    "engines": {
      "node": "8" 
    }
    

    in your package.json

    0 讨论(0)
  • 2021-02-18 13:46

    If issue still exist after updating the CLI then try to logout from firebase and re-login

    firebase logout
    firebase login
    
    0 讨论(0)
  • 2021-02-18 13:53

    I updated to latest and did logout+login. Only started working after closing the terminal and opening a new one

    0 讨论(0)
  • 2021-02-18 13:54

    Probably you will need:

    sudo npm i -g firebase-tools@latest --force
    
    0 讨论(0)
提交回复
热议问题