admin管理员组文章数量:1420119
I tried to deploy a very simple site for a Firebase project I have set up, and followed the following steps:
- firebase login (I was already logged in since I have other projects I'm working on)
- firebase init (created the .firebaserc and database.rules.json files).
- firebase deploy
On deploy, I keep getting the following error message:
λ firebase deploy
! Your CLI authentication needs to be updated to take advantage of new features.
! Please run firebase login --reauth
Error: Unable to authorize access to project [PROJECT NAME]
I succesfully ran firebase login --reauth and I still get this.
Anyone know what I could be doing wrong here?
I tried to deploy a very simple site for a Firebase project I have set up, and followed the following steps:
- firebase login (I was already logged in since I have other projects I'm working on)
- firebase init (created the .firebaserc and database.rules.json files).
- firebase deploy
On deploy, I keep getting the following error message:
λ firebase deploy
! Your CLI authentication needs to be updated to take advantage of new features.
! Please run firebase login --reauth
Error: Unable to authorize access to project [PROJECT NAME]
I succesfully ran firebase login --reauth and I still get this.
Anyone know what I could be doing wrong here?
Share Improve this question edited Jul 5, 2017 at 9:14 KENdi 7,7892 gold badges18 silver badges31 bronze badges asked Jul 5, 2017 at 9:12 JbbaeJbbae 1,03810 silver badges20 bronze badges2 Answers
Reset to default 7First warning shows you have to update firebase-cli.
Run this mand to update:
npm install -g firebase-tools
Your project may not have been linked which causes that error.
Run this mand to link the project:
firebase use --add
It will list down the projects in your firebase account, select the correct one and try deploying the project using:
firebase deploy
PS: You don't have to append project_id to deploy
mand every time once you run use --add
mand
Found my answer in another post
It seems that when deploying, you're supposed to deploy with:
firebase deploy --project [PROJECT ID, not PROJECT NAME]
本文标签: javascriptFirebase DeployquotUnable to Authorizequot errorStack Overflow
版权声明:本文标题:javascript - Firebase Deploy - "Unable to Authorize" error - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745327395a2653656.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论