SUH*_*KAD 8 reactjs firebase-hosting firebase-cli
我正在将我的 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
Run Code Online (Sandbox Code Playgroud)
知道如何解决这个问题吗?
为了了解错误的根本原因,请尝试使用调试选项运行 Firebase init 命令:
firebase init --debug
Run Code Online (Sandbox Code Playgroud)
请求失败的原因可能是“证书链中存在自签名证书”。如果是这样,您将在调试输出中看到此错误,然后您可以参考此 StackOverflow 问题以获取解决方法或修复该问题:nodejs - 证书链中的错误自签名证书
归档时间: |
|
查看次数: |
5784 次 |
最近记录: |