firebase-tools "Error: certificate has expired"

Probably you will need:

sudo npm i -g firebase-tools@latest --force

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


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