我正在尝试使用该命令初始化一个firebase项目firebase init,但我得到了消息Error: Command requires authentication, please run firebase login.当我运行时firebase login,进程挂起并且不返回提示符:
以前我安装了最新的稳定版node.js和firebase-tools(with npm install -g firebase-tools).我正在使用Windows 8.1 x64机器.
firebase-debug.log文件的内容不报告任何错误或警告:
[debug] ----------------------------------------------------------------------
[debug] Command: C:\Program Files (x86)\nodejs\node.exe C:\Users\ \AppData\Roaming\npm\node_modules\firebase-tools\bin\firebase login
[debug] Platform: win32
[debug] Node Version: v5.1.0
[debug] Time: Mon Nov 23 2015 13:49:06 GMT-0500 (Eastern Standard Time)
[debug] ----------------------------------------------------------------------
[debug]
Run Code Online (Sandbox Code Playgroud)
如何调试login命令?Nomaly它应该打开一个浏览器窗口进行身份验证,但在我的情况下不会发生这种情况.
JOR*_*ANO 35
你有答案吗?
您需要输入'firebase login --interactive',然后它会引导您通过浏览器访问gmail帐户以登录,然后您可以执行'firebase init'命令.
| 归档时间: |
|
| 查看次数: |
8179 次 |
| 最近记录: |