我在尝试使用CLI登录Firebase时遇到了问题。我已经使用管理员权限使用npm -g install firebase-tools
安装了firebase-tools
。我执行的步骤有以下几个(在Windows 10专业版的cygwin终端中):
firebase login --no-localhost
之后我收到了这条消息:
Visit the URL on any device....
Paste authentication code here:
然后,在我的浏览器上,我看到谷歌询问是否授予Firebase CLI访问权限,我点击“是”,然后在浏览器上显示一个授权代码。
我将此代码复制到cygwin控制台中,然后执行以下操作:
Error: Authentication Error.
我完全不知道这是什么,这完全阻碍了我了解Firebase的努力。非常感谢您的所有帮助。