firebase-tools [错误:服务器错误。证书链中的自签名证书]

时间:2020-06-16 04:19:06

标签: firebase ssl proxy

当我使用firebase init命令时,收到此错误消息。 Error: Server Error. self signed certificate in certificate chain 这是整个错误消息。

user@debian:~/test$ firebase init

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

  /home/user/test

? Which Firebase CLI features do you want to set up for this folder? Press Space
 to select features, then Enter to confirm your choices. (Press <space> to selec
t, <a> to toggle all, <i> to invert selection)Database: Deploy Firebase Realtime
 Database Rules, Firestore: Deploy rules and create indexes for Firestore, Funct
ions: Configure and deploy Cloud Functions, Hosting: Configure and deploy Fireba
se Hosting sites, Storage: Deploy Cloud Storage security rules, Emulators: Set u
p local emulators for Firebase features

=== 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: chatroom-ec6ef (chatroom
)
i  Using project chatroom-ec6ef (chatroom)

=== Database Setup

Firebase Realtime Database Rules allow you to define how your data should be
structured and when your data can be read from and written to.

? What file should be used for Database Rules? database.rules.json

Error: Server Error. self signed certificate in certificate chain

我从办公室访问,所以我使用代理服务器。

例如,当我使用curl时,我需要-k

使用npm时,我需要npm config --global set strict-ssl false

那是因为我必须禁用ssl

我在互联网上搜索了firebase来禁用ssl的命令,但找不到。

能给我提些建议吗?

0 个答案:

没有答案