简体   繁体   English

错误:hosting:channel:deploy 不是 Firebase 命令

[英]Error: hosting:channel:deploy is not a Firebase command

I'm trying to preview my firebase website and share with the following command:我正在尝试预览我的 firebase 网站并使用以下命令共享:

firebase hosting:channel:deploy "testing_changes" 

but I keep getting Error: hosting:channel:deploy is not a Firebase command但我不断收到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 .根据此博客,您需要拥有firebase-tools >= 8.12.0

run firebase --version in a terminal to view your currently installed version of firebase-tools.在终端中运行firebase --version以查看您当前安装的 firebase-tools 版本。

to update firebase-tools write npm i -g firebase-tools in a terminal.要更新firebase-tools npm i -g firebase-tools ,请在终端中写入npm i -g firebase-tools

if you are on linux sudo npm i -g firebase-tools .如果你在 linux 上sudo npm i -g firebase-tools

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM