This morning I tried to deploy my react project to firebase hosting but I received this error:
Error: Server Error. certificate has expired
The
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:
which firebase
in your terminal to see where your firebase npm package is saved.npm i -g firebase-tools@latest
firebase init
and you should be up and running again without any errors. Had the same problem. Change your local clock to before 4th of January 2020
run npm install --save firebase-functions@latest
and make sure to add
"engines": {
"node": "8"
}
in your package.json
If issue still exist after updating the CLI then try to logout from firebase and re-login
firebase logout
firebase login
I updated to latest and did logout+login. Only started working after closing the terminal and opening a new one
Probably you will need:
sudo npm i -g firebase-tools@latest --force