gpt4 book ai didi

Firebase 托管 : unable to get local issuer certificate

转载 作者:行者123 更新时间:2023-12-03 09:08:56 24 4
gpt4 key购买 nike

尝试开发并部署到 Firebase 托管,但当我从 PowerShell 运行 firebase init 时收到以下错误消息:

服务器错误。无法获取本地颁发者证书

有人知道这个吗?这是日志文件内容:

[debug] [2017-06-09T10:45:14.977Z] ----------------------------------------------------------------------
[debug] [2017-06-09T10:45:14.979Z] Command: C:\nodejs\node.exe C:\nodejs\node_modules\firebase-tools\bin\firebase init
[debug] [2017-06-09T10:45:14.979Z] CLI Version: 3.9.1
[debug] [2017-06-09T10:45:14.980Z] Platform: win32
[debug] [2017-06-09T10:45:14.980Z] Node Version: v7.9.0
[debug] [2017-06-09T10:45:14.980Z] Time: Fri Jun 09 2017 11:45:14 GMT+0100 (GMT Daylight Time)
[debug] [2017-06-09T10:45:14.980Z] ----------------------------------------------------------------------
[debug]
[debug] [2017-06-09T10:45:14.993Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase"]
[debug] [2017-06-09T10:45:14.993Z] > authorizing via signed-in user
[info]
######## #### ######## ######## ######## ### ###### ########
## ## ## ## ## ## ## ## ## ## ##
###### ## ######## ###### ######## ######### ###### ######
## ## ## ## ## ## ## ## ## ## ##
## #### ## ## ######## ######## ## ## ###### ########

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

U:\firebase

[info]
=== Project Setup
[info]
[info] First, let's associate this project directory with a Firebase project.
[info] You can create multiple project aliases by running firebase use --add,
[info] but for now we'll just set up a default project.
[info]
[debug] [2017-06-09T10:45:29.107Z] >>> HTTP REQUEST GET https://admin.firebase.com/v1/projects
Fri Jun 09 2017 11:45:29 GMT+0100 (GMT Daylight Time)
[debug] [2017-06-09T10:45:29.692Z] Error: unable to get local issuer certificate
[error]
[error] Error: Server Error. unable to get local issuer certificate

非常感谢

最佳答案

我终于成功解决了同样的问题。只需设置以下环境变量:

set NODE_TLS_REJECT_UNAUTHORIZED=0

并且 firebase 项目应该正确初始化。然而,我认为这个解决方案更类似于黑客而不是解决方案。

关于Firebase 托管 : unable to get local issuer certificate,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44456337/

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