使用codeanywhere HTML5 connection / devbox

时间:2017-06-21 01:51:29

标签: html5 firebase npm firebase-tools codeanywhere

我在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时登录的适当方法是什么?

谢谢!

1 个答案:

答案 0 :(得分:4)

由于Codeanywhere不是本地环境,因此您需要将allow_unicode附加到firebase登录命令:

--no-localhost

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

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