I'm trying to preview my firebase website and share with the following command:
firebase hosting:channel:deploy "testing_changes"
but I keep getting Error: hosting:channel:deploy is not a Firebase command
I've also tried not passing a string and just the word but I get the same error. I'm positive I'm in the root directory.
as per this blog, you need to have firebase-tools >= 8.12.0
.
run firebase --version
in a terminal to view your currently installed version of firebase-tools.
to update firebase-tools
write npm i -g firebase-tools
in a terminal.
if you are on linux sudo npm i -g firebase-tools
.