gpt4 book ai didi

firebase - "Error: Permission denied"运行 firebase init 并选择数据库时

转载 作者:行者123 更新时间:2023-12-01 00:40:09 25 4
gpt4 key购买 nike

所以我今天正在测试 CLI 和 firebase init选择 db/hosting 并选择创建一个新项目,总是显示 Error: Permission denied. .
sudo firebase init没有帮助。
firebase-tools版本3.0.3在 OS X 10.11.5 上。

firebase init

You're about to initialize a Firebase project in this directory:

/Users/splaktar/Git/tmp

Before we get started, keep in mind:

* You are initializing in an existing Firebase project directory

? What Firebase CLI features do you want to setup for this folder? Database: Deploy Firebase Realtime Database Rules

=== Project Setup

First, let's associate this project directory with a Firebase project.
You can create multiple project aliases by running firebase use --add,
but for now we'll just set up a default project.

? What Firebase project do you want to associate as default? [don't setup a default project]

=== Database Setup

Firebase Realtime Database Rules allow you to define how your data should be
structured and when your data can be read from and written to.

? What file should be used for Database Rules? database.rules.json

Error: Permission denied.

我已经尝试了答案 here但他们没有帮助。这只是 firebase-tools 中的一个错误吗? ?

最佳答案

我有同样的问题,这就是我解决它的方法。

  • 运行 firebase init
  • 取消选择 ❯◯ Database: Deploy Firebase Realtime Database Rules
  • 通过其他步骤设置初始应用程序,为每个应用程序选择默认值应该可以正常工作。
  • 运行 firebase serve

  • 希望有帮助。

    关于firebase - "Error: Permission denied"运行 firebase init 并选择数据库时,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38020595/

    25 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com