gpt4 book ai didi

reactjs - Firebase 错误.. 错误 : Failed to make request to https://www. gstatic.com/firebasejs/releases.json

转载 作者:行者123 更新时间:2023-12-04 03:38:37 29 4
gpt4 key购买 nike

我正在将我的 React 应用程序部署到 Firebase 托管。当我创建 firebase init 并选择所有选项时,我收到此错误。

C:\Users\user\git\Apps\screem>firebase init

######## #### ######## ######## ######## ### ###### ########
## ## ## ## ## ## ## ## ## ## ##
###### ## ######## ###### ######## ######### ###### ######
## ## ## ## ## ## ## ## ## ## ##
## #### ## ## ######## ######## ## ## ###### ########

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

C:\Users\user\git\Apps\screem

? Are you ready to proceed? Yes
? Which Firebase CLI features do you want to set up for this folder? Press Space to select features, then Enter to confi
rm your choices. Hosting: Configure and deploy Firebase Hosting sites

=== 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.

? Please select an option: Use an existing project
? Select a default Firebase project for this directory: screem-59e13 (screem)
i Using project screem-59e13 (screem)

=== Hosting Setup

Your public directory is the folder (relative to your project directory) that
will contain Hosting assets to be uploaded with firebase deploy. If you
have a build process for your assets, use your build's output directory.

? What do you want to use as your public directory? build
? Configure as a single-page app (rewrite all urls to /index.html)? Yes
? Set up automatic builds and deploys with GitHub? No

Error: Failed to make request to https://www.gstatic.com/firebasejs/releases.json
知道如何解决这个问题吗?

最佳答案

为了了解错误的根本原因,请尝试使用调试选项运行 Firebase init 命令:

firebase init --debug
请求失败的原因可能是证书链中的“ 自签名证书”。如果是这样,您将在调试输出中看到此错误,然后您可以引用此 StackOverflow 问题以了解解决方法或修复问题的方法: nodejs - error self signed certificate in certificate chain

关于reactjs - Firebase 错误.. 错误 : Failed to make request to https://www. gstatic.com/firebasejs/releases.json,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/66456400/

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