【发布时间】:2016-10-27 11:57:22
【问题描述】:
所以我今天测试了 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 中的一个错误吗?
【问题讨论】:
-
我也有同样的问题(OS X 10.11.5 上的 firebase-tools 3.0.3 也是如此)。一种可能的解决方法是首先从新的 Firebase 控制台 (console.firebase.google.com) 创建一个新项目,然后从“firebase init”中选择该项目。
-
我已经试过了,没有任何运气。