javascript - Firebase Deploy - "Unable to Authorize" error - Stack Overflow

I tried to deploy a very simple site for a Firebase project I have set up, and followed the following s

I tried to deploy a very simple site for a Firebase project I have set up, and followed the following steps:

  1. firebase login (I was already logged in since I have other projects I'm working on)
  2. firebase init (created the .firebaserc and database.rules.json files).
  3. 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:

  1. firebase login (I was already logged in since I have other projects I'm working on)
  2. firebase init (created the .firebaserc and database.rules.json files).
  3. 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 badges
Add a ment  | 

2 Answers 2

Reset to default 7

First 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]

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745327395a4622722.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信