Firebase Deploy Error: Authorization failed

前端 未结 7 1371
别跟我提以往
别跟我提以往 2021-02-05 00:51

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

Error: Authorization failed. This account is missing the fol

7条回答
  •  抹茶落季
    2021-02-05 01:27

    in my case I was getting the following:

    > firebase deploy
    
    
    Error: Authorization failed. This account is missing the following required permissions on project deploy:
    
      firebase.projects.get
      firebasehosting.sites.update
    npm ERR! code ELIFECYCLE
    npm ERR! errno 1
    npm ERR! n00001@0.0.0 deploy: `firebase deploy`
    npm ERR! Exit status 1
    npm ERR! 
    npm ERR! Failed at the n00001@0.0.0 deploy script.
    npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
    
    npm ERR! A complete log of this run can be found in:
    npm ERR!     /home/beeeep/.npm/_logs/2099-98-95T09_97_94_392Z-debug.log
    

    Looks like this was the reason: I had deployed it once, then removed the .firebaserc file before pushing it to github. Then tried again to deploy.

    Resolved it by doing a firebase use --add and selecting the desired firebase project. Which created the .firebaserc file again. Guess the error message is misleading here.

提交回复
热议问题