firebase-tools “Error: certificate has expired”

后端 未结 7 2429
终归单人心
终归单人心 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:58

    I found the solution. First, do this:

    npm i -g firebase-tools@latest
    

    It looks like I'm using an outdated version of Firebase CLI. This error happened because the older versions of CLI are linked to legacy Firebase services that are no longer operational. Upgrading to the latest CLI version is the only solution.

    Then you need to use new commands instead of deprecated ones. For example:

    firebase projects:list  //instead of firebase list
    

提交回复
热议问题