Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
240 views
in Technique[技术] by (71.8m points)

angular - Firebase Deploy Error: Authorization failed

I am trying the following firebase deploy command and I get the following error:

Error: Authorization failed. This account is missing the following required permissions on project ID project:

  cloudfunctions.functions.create
  cloudfunctions.functions.delete
  cloudfunctions.functions.get
  cloudfunctions.functions.list
  cloudfunctions.functions.update
  cloudfunctions.operations.get
  firebase.projects.get
  firebasehosting.sites.update

I have all the accesses. I am working with angular 6.

I should mention that this project was working normal in a previous project in Firebase. I have created a new one and I want to migrate the contents of the previous one to this new one and there the problem started.

I should also mention that before I was logged in with another user.

Any ideas?

question from:https://stackoverflow.com/questions/53147438/firebase-deploy-error-authorization-failed

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

If you created your project in the fireabse website account, during firebase deployment we need to select that firebase project for hosting. Also if you created more than one project in the firebase account, we need to select one project for the deployment process. For that you need to run the below command.

firebase use --add

It will list multiple project and you can choose one from that option. Then run firebase deploy.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...