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]
发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745327395a4622722.html
评论列表(0条)