首页 > 解决方案 > 即使 firebase init 命令有效,firebase deploy 也不起作用

问题描述

我是编程新手,仍在学习一些东西(我使用 Windows 顺便说一句)。

我尝试制作一个应用程序,将其连接到 Firebase。设置完所有内容后,该设置 CLI

好消息:我成功设置了从节点到 nvm 的所有内容,直到在 CLI 中成功启动登录。

坏消息:成功登录 CLI 后,我正在尝试输入 cmd

firebase deploy --only function

并出现此错误

错误:不在 Firebase 应用目录中(无法找到 firebase.json)

我已经在网上搜索解决方案,但我什么也没找到。

有人能告诉我我错过了什么吗?

标签: firebasefirebase-tools

解决方案


推荐阅读