Firebase项目初始化错误:未为此项目设置云资源位置 [英] Firebase Project Initialization Error: Cloud resource location is not set for this project

查看:46
本文介绍了Firebase项目初始化错误:未为此项目设置云资源位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图找到此问题的快速答案,但找不到任何东西.我试图设置一个Ionic应用程序以使用现有的Firebase项目,并且在Windows控制台中运行 firebase init 时,出现以下消息:

错误:未为此项目设置云资源位置,但是您尝试在Cloud Firestore中执行的操作需要它.请参阅此文档以了解更多详细信息: https://firebase.google.com/docs/projects/locations

解决方案

消息实际上很清晰,但是花了我一段时间才在Firebase控制台中找到所需选项的位置:

  • 转到您的项目设置
  • 在第一个标签上,找到显示为在FB控制台中设置云存储"的设置
  • 如果未设置,请对其进行编辑并设置值

奇怪的是,在创建项目时,此值是更早的必填项,但由于某种原因,您需要再次以这种形式明确选择它.

I tried to find a quick answer to this question but couldn't find anything. I am trying to set up an Ionic application to use an existing Firebase project and when running firebase init in the windows console I get this message:

Error: Cloud resource location is not set for this project but the operation you are attempting to perform in Cloud Firestore requires it. Please see this documentation for more details: https://firebase.google.com/docs/projects/locations

解决方案

The message is actually clear but it took me a while to find where in the Firebase console the necessary option is located:

  • Go to your project Settings
  • On the first tab, locate the settings that reads "Set up Cloud Storage in FB console"
  • If it is not set, edit it and set the value

Strangely, this value is mandatory earlier when creating your project but for some reason you need to explicitly select it again in this form.

这篇关于Firebase项目初始化错误:未为此项目设置云资源位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆