无法使用 firebase-tools 初始化 firebase 项目
Unable to initialize firebase project using firebase-tools
我正在尝试使用命令 firebase init
初始化一个 firebase 项目,但我收到消息 Error: Command requires authentication, please run firebase login
。
当我运行firebase login
时,进程挂了,没有return提示:
之前我安装了 node.js 和 firebase-tools 的最新稳定版本(带有 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]
如何调试登录命令?通常它应该打开浏览器 window 进行身份验证,但在我的情况下不会发生这种情况。
你得到答案了吗?
您需要输入 'firebase login --interactive' 然后它会带您通过浏览器到一个 gmail 帐户登录然后您可以执行您的 'firebase init' 命令。
我正在尝试使用命令 firebase init
初始化一个 firebase 项目,但我收到消息 Error: Command requires authentication, please run firebase login
。
当我运行firebase login
时,进程挂了,没有return提示:
之前我安装了 node.js 和 firebase-tools 的最新稳定版本(带有 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]
如何调试登录命令?通常它应该打开浏览器 window 进行身份验证,但在我的情况下不会发生这种情况。
你得到答案了吗?
您需要输入 'firebase login --interactive' 然后它会带您通过浏览器到一个 gmail 帐户登录然后您可以执行您的 'firebase init' 命令。