首页 文章

firebase部署不被识别为内部或外部命令,可操作程序

提问于
浏览
0

我正在使用 Cloud 功能,它做得很好 . 然后我想编译java程序并在vscode上安装另一个扩展 .

*注意:我改变了我的路径

But now, if I want to firebase deploy my cloud function its going like this

Screen Shot

This is my firecast folder

Screen Shot

2 回答

  • 1

    使用npm做它更简单

    1) npm i -g firebase-cli
    
    2) firebase login
    
    3) firebase init
    
    4) to run local test its firebase serve --only functions,hosting     
    (if use using hosting)
    
    5) firebase deploy
    
  • 0

    好像 firebase.exe 命令不在你 PATH

    如果您已经使用global( -g )安装了firebase-tool,那么您的 %HOMEPATH%\AppData\Roaming\npm 文件夹中应该有 firebase.exe .

    否则,您在执行此操作时已将其安装在本地 . 但我建议您使用( -g )选项重新安装firebase工具并尝试一下 .

    然后尝试 where firebase 以查看现在是否可以在 PATH 中找到它 .

相关问题