When I am hosting my web page through firebase hosting then after writing command firebase deploy
I got the following error:
Microsoft Windows [Versi
In my case, this error occurred when I had not set the site name in firebase.json.
Example of the firebase.json with site highlighted
In my case, resolve with:
firebase deploy --except functions
It could be due to npm and node version For mac os, you can update npm using command:
npm install -g npm@latest
and update node directly by going to link https://nodejs.org/en/ and download installer. and run
npm install -g firebase-tools
For removing firebase hosting deployment errors (also if you are updating existing hosted site)
you can do process again
1] firebase login
2] firebase init
3] firebase deploy
Make sure your current folder has two things: public folder (which contains all files index.html) And firebase.json file
If you still are serving your site on localhost using firebase serve
it might cause problems. Shut it down then try the deploy. Worked for me.
Yes I've faced this issue..
This is because of my node version I was using Node v.8.0.0
I just downgrade it to Node v.16.0.3
and then my deployment done :)
Make sure that you are logged in by running firebase login
in the terminal.