firebase deploy --only hosting gives Error: HTTP Error: 410, Unknown Error

For me only installing specific version worked e.g npm install -g [email protected]


Update global npm "firebase-tools"


I found this response from the firebase-community Slack group https://firebase-community.slack.com:

If you are receiving a 410 error, you will likely need to update your cli version (firebase-tools). Updating to the latest version should fix it. You will need to upgrade your CLI version to at least 4.1.0 (>= 5.1.1 is recommended).

I was using firebase-tools: version 3.18.4 previously, and after upgrading to the latest version (5.1.1), I was able to deploy successfully:

npm install -g [email protected]