this is my log :
[info] === Deploying to \'test-123\'...
[info]
[info] i deploying hosting
[info] i hosting: preparing public directory for
Updating firebase tools with npm update -g firebase-tools
fixed this for me. I also had to close my terminal session and open a new one to use the new cli version.
My problem was using nvm
the version of firebase-tools
was mixed, however this npx firebase deploy
worked for me.
Credit goes to heydanhey
here github issue
After updating firebase I also needed to run this command.
alias firebase="`npm config get prefix`/bin/firebase"
This worked for me:
npm update -g firebase-tools
firebase logout
firebase login
firebase deploy
Upgrading the dependencies for the project may help
npm install --save firebase-functions@latest
For me only installing specific version worked e.g npm install -g firebase-tools@5.1.1