firebase部署速度慢,没有响应

时间:2016-06-22 10:06:23

标签: database deployment firebase firebase-hosting firebase-tools

deploy命令运行到站点只会使终端闪烁,好像它在某些繁重的操作中卡住了一样。

enter image description here

什么都不会发生。我实际上并没有尝试使用--debug标志。

首先想到的是我在公司代理背后。所以我设置了一个纯粹的"连接,它仍然没有连接。那么问题是什么?

2 个答案:

答案 0 :(得分:0)

打开firebase-debug.log文件,其中包含您可能在其中发现错误的日志。

与此类似的日志

[debug] [2020-09-26T07:53:15.852Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
[debug] [2020-09-26T07:53:15.854Z] > authorizing via signed-in user
[debug] [2020-09-26T07:53:15.855Z] [iam] checking project testproject for permissions ["firebase.projects.get","firebasehosting.sites.update"]
[debug] [2020-09-26T07:53:15.861Z] > refreshing access token with scopes: ["email","https://www.googleapis.com/auth/cloud-platform","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","openid"]
[debug] [2020-09-26T07:53:15.861Z] >>> HTTP REQUEST POST https://www.googleapis.com/oauth2/v3/token  

在我的情况下,这是由于互联网连接速度慢,因此无法建立连接。

答案 1 :(得分:-3)

运行firebase --help如果有可用的更新,应该会弹出一个信息。

enter image description here

如果您应该更新,然后重新部署。

npm update -g firebase-tools
firebase deploy

如果这不起作用,请列出项目并检查您是否已登录

firebase list
firebase login
相关问题