1

我在 codeanywhere html5 连接上安装了 firebase。当我尝试运行 shell 命令 >firebase login时,响应给了我一个 URL 以启动以便登录。登录并允许权限后,它重定向到 localhost URL 并出现以下错误:

This site can’t be reached

localhost refused to connect.
Search Google for localhost 9005
ERR_CONNECTION_REFUSED

从 codeanywhere 框中使用 firebase 时,登录的适当方式是什么?

谢谢!

4

1 回答 1

4

由于 Codeanywhere 不是本地环境,因此您需要附加--no-localhost到 firebase login 命令:

$ firebase login --no-localhost

这将生成通常的登录 URL,但完成后,您将获得一个授权令牌以粘贴到 CLI 中。

此处的进一步说明: https ://www.npmjs.com/package/firebase-tools

于 2017-07-02T22:23:23.007 回答