我尝试使用 CLI 登录 Firebase 时遇到问题。我firebase-tools
使用npm -g install firebase-tools
管理员权限安装。我所做的步骤是(来自 Windows 10 Professional 上的 cygwin 终端):
firebase login --no-localhost
在此之后,我收到消息:
Visit the URL on any device....
Paste authentication code here:
然后,在我的浏览器上,我看到 Google 询问我是否授予 Firebase CLI 访问权限,我说是,然后我在浏览器上显示了一个授权码。
我将此代码复制到 cygwin 控制台中,然后:
Error: Authentication Error.
我对此完全不知所措,这完全阻碍了我了解 Firebase 的努力。感谢所有帮助。