我在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时登录的适当方法是什么?
谢谢!
答案 0 :(得分:4)
由于Codeanywhere不是本地环境,因此您需要将allow_unicode
附加到firebase登录命令:
--no-localhost
这将生成通常的登录URL,但完成后,您将获得一个授权令牌以粘贴到CLI中。