简体   繁体   English

Firebase 登录问题

[英]Issue with Firebase login

Can someone help me it is my first time using firebase.有人可以帮我吗这是我第一次使用 firebase。 I have installed node JS, updated my npm and ran npm install -g firebase-tools and when i try to login using firebase login it gives me this error我已经安装了节点 JS,更新了我的 npm 并运行了npm install -g firebase-tools当我尝试使用firebase login时,它给了我这个错误

Visit this URL on this device to log in:
https://accounts.google.com/o/oauth2/auth?client_id=563584335869-fgrhgmd47bqnekij5i8b5pr03ho849e6.apps.googleusercontent.com&scope=email%20openid%20https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fcloudplatformprojects.readonly%20https%3A%2F%2Fwww.googleapis.com%2Fauth%2Ffirebase%20https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fcloud-platform&response_type=code&state=618585556&redirect_uri=http%3A%2F%2Flocalhost%3A9005

Waiting for authentication...

Error: An unexpected error has occurred.

Try opening the URL in another browser, it is most likely the browser you are using doesn't support app hooks to invoke the application.尝试在另一个浏览器中打开 URL,很可能您使用的浏览器不支持应用程序挂钩来调用应用程序。 Google Chrome is ideal.谷歌浏览器是理想的。 if this fails there may be a firewall or a plugin interfering.如果失败,则可能是防火墙或插件干扰。

Visit this URL on this device to log in: https://accounts.google.com/o/oauth2/auth?client_id=563584335869-fgrhgmd47bqnekij5i8b5pr03ho849e6.apps.googleusercontent.com&scope=email%20openid%20https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fcloudplatformprojects.readonly%20https%3A%2F%2Fwww.googleapis.com%2Fauth%2Ffirebase%20https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fcloud-platform&response_type=code&state=618585556&redirect_uri=http%3A%2F%2Flocalhost%3A9005
    
    Waiting for authentication...
    
    Error: An unexpected error has occurred.

when you facing this error u should add this directory C:\Windows\System32 inside of you enviroment variable path than you good to go当你遇到这个错误时,你应该在你的环境变量路径中添加这个目录C:\Windows\System32比你好到 go

//This lines goes for who do not know how to go enviroment variable path //此行适用于不知道如何 go 环境变量路径的人

Click "Advanced system settings".点击“高级系统设置”。 Click "Environment Variables".单击“环境变量”。 Under "System Variables", find the PATH variable, select it, and click "Edit".在“系统变量”下,找到 PATH 变量 select,然后单击“编辑”。 If there is no PATH variable, click "New".如果没有 PATH 变量,请单击“新建”。 Add your directory to the beginning of the variable value followed by;将您的目录添加到变量值的开头,然后是; (a semicolon). (分号)。 ... Click "OK". ...单击“确定”。 Restart your terminal.重启你的终端。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM