node.jsweb-deploymentfirebase-hosting

Firebase hosting deployment error Error: Error: 404, Requested entity was not found


i have hosted a static website on firebase and i am using node.js. when i am trying to deploy my website i am facing this error.

 C:\Users\Ankur-PC\Desktop>firebase deploy

=== Deploying to 'wo*****win'...

i  deploying hosting

**Error: HTTP Error: 404, Requested entity was not found.**

i was also trying these cmd to resolve this error

npm install firebase-functions@latest firebase-admin@latest --save
npm install -g firebase-tools

Solution

  • Unless the source of your website is in C:\Users\Ankur-PC\Desktop , you are executing the command in the wrong directory

    try to cd [source dir] and then deploy