如何解决Firebase 错误.. 错误:无法向 https://www.gstatic.com/firebasejs/releases.json 发出请求
我正在将我的 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
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。