【发布时间】:2018-01-13 18:15:06
【问题描述】:
每当我在终端(mac os sierra)中使用以下命令时
firebase 初始化
将显示以下三个选项
❯◯ Database: Deploy Firebase Realtime Database Rules
◯ Functions: Configure and deploy Cloud Functions
◯ Hosting: Configure and deploy Firebase Hosting sites
如果我什么都不选择并按 Enter
我会收到以下消息
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.
i .firebaserc already has a default project, skipping
i Writing configuration info to firebase.json...
i Writing project information to .firebaserc...
✔ Firebase initialization complete!
但是当我选择第二个选项时
◯ Functions: Configure and deploy Cloud Functions
我会收到以下消息
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.
i .firebaserc already has a default project, skipping
=== Functions Setup
A functions directory will be created in your project with a Node.js
package pre-configured. Functions can be deployed with firebase deploy.
Error: HTTP Error: 401, The entered credentials were incorrect.
Amits-MacBook-Pro:firebase-functions Amit$
我尝试了 firebase 注销,然后再次 firebase 登录,但同样的错误即将到来
我也用过firebase list
我收到以下警告,然后我得到了项目列表
Amits-MacBook-Pro:firebase-functions Amit$ firebase 列表 警告:没有 ES6/C++11,高级压缩编码不可用。回退到 gzip。
自从很久以前我用另一个谷歌登录名使用了firebase功能,现在我从那里注销并开始使用不同的谷歌登录帐户登录但无法这样做,如果我用以前的谷歌登录名登录仍然无法正常工作
我还检查了我使用过 firebase init 的目录,该目录中没有创建任何文件。
在 Firebase 功能的演示中,他们显示了一些文件已创建
https://www.youtube.com/watch?v=EvV9Vk9iOCQ&t=308s
我应该卸载 firebase 并重新安装吗?如果是,请告诉我如何卸载?
【问题讨论】:
标签: firebase google-cloud-functions firebase-tools