Firebase 部署卡住/挂起,没有错误消息

标签 firebase firebase-hosting firebase-tools

命令 Firebase deploy当我运行它时总是卡住。

以下是详细信息:

    $ firebase deploy --token "SOMETOKEN" --debug
----------------------------------------------------------------------
Command:      /usr/local/bin/node /usr/local/bin/firebase deploy --token SOMETOKEN --debug
CLI Version:  3.0.0
Platform:     darwin
Node Version: v5.0.0
Time:         Tue May 24 2016 14:25:31 GMT+0800 (CST)
----------------------------------------------------------------------

> command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase"]
> refreshing access token with scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase"]
>>> HTTP REQUEST POST https://www.googleapis.com/oauth2/v3/token refresh_token=SOMETOKEN, client_id=XXXXXX-XXXXXX.apps.googleusercontent.com, client_secret=XXXXXX, grant_type=refresh_token, scope=email openid https://www.googleapis.com/auth/cloudplatformprojects.readonly https://www.googleapis.com/auth/firebase
<<< HTTP RESPONSE 200 cache-control=no-cache, no-store, max-age=0, must-revalidate, pragma=no-cache, expires=Mon, 01 Jan 1990 00:00:00 GMT, date=Tue, 24 May 2016 06:25:33 GMT, vary=X-Origin, Origin,Accept-Encoding, content-type=application/json; charset=UTF-8, x-content-type-options=nosniff, x-frame-options=SAMEORIGIN, x-xss-protection=1; mode=block, server=GSE, alternate-protocol=443:quic, alt-svc=quic=":443"; ma=2592000; v="34,33,32,31,30,29,28,27,26,25", accept-ranges=none, connection=close
>>> HTTP REQUEST GET https://admin.firebase.com/v1/projects/hackdaychat
<<< HTTP RESPONSE 200 server=nginx, date=Tue, 24 May 2016 06:25:34 GMT, content-type=application/json; charset=utf-8, content-length=109, connection=close, x-content-type-options=nosniff, strict-transport-security=max-age=31536000; includeSubdomains, cache-control=no-cache, no-store
>>> HTTP REQUEST GET https://admin.firebase.com/v1/database/hackdaychat/tokens
<<< HTTP RESPONSE 200 server=nginx, date=Tue, 24 May 2016 06:25:36 GMT, content-type=application/json; charset=utf-8, content-length=423, connection=close, x-content-type-options=nosniff, strict-transport-security=max-age=31536000; includeSubdomains, cache-control=no-cache, no-store

如您所见,我使用之前通过 firebase login:ci 创建的 token 进行了尝试。 .

没有 token 它是相同的结果。

我还创建了本地 Firebase 项目。 Firebase init期间没有错误.
Firebase --list工作正常。 FireBase loginFirebase logout工作正常。

一些附加信息:
  • $ node -v --> v5.0.0
  • $ npm -v --> 3.3.6
  • $ firebase -V --> 3.0.0
  • 操作系统:OS X 10.11.4
  • 位置:上海,但使用代理到新加坡。
  • 访问 Firebase 网站工作正常。
  • 我对我正在使用的项目拥有所有者权利
  • 我尝试部署某种空项目。意思是:我的公用文件夹只包含 index.html404.html .

  • 任何人都知道会出什么问题?

    最佳答案

    我遇到了类似的问题

    尝试

    firebase logout
    

    然后
    firebase login 
    

    它适用于我的情况。一旦我登录,似乎 firebase 应用程序需要额外的权限


    npm update -g firebase-tools
    

    关于Firebase 部署卡住/挂起,没有错误消息,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37406241/

    相关文章:

    android - Firebase 自定义身份验证错误 : The custom token format is incorrect

    java - 我的应用程序因 firebaseAuth.getUid() 的空指针异常而崩溃

    firebase - 有没有办法让 Firebase 托管不区分大小写?

    firebase - 如何让 firebase deploy --email 或 --token 参数工作?

    flutter - "At least one of ID token and access token is required"带有 google 登录流程和 firebase 模拟器套件

    Firebase 模拟器云功能仅适用于 Flutter 中的默认 us-central1 位置

    firebase - Flutter web - 无法加载网络图像

    javascript - 单击按钮时不会从 firebase 中删除文档(onclick 方法)

    reactjs - 在 React 中自动配置 Firebase SDK

    Firebase函数: Cannot set property config of#<Object> which has only a getter