Firebase部署错误:授权失败 [英] Firebase Deploy Error: Authorization failed
问题描述
我正在尝试以下firebase deploy
命令,但出现以下错误:
I am trying the following firebase deploy
command and I get the following error:
错误:授权失败.此帐户缺少以下内容 项目ID项目所需的权限:
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
我拥有所有访问权限.我正在使用角度6.
I have all the accesses. I am working with angular 6.
我应该提到,该项目在Firebase的先前项目中正常运行.我已经创建了一个新文件,并且想要将上一个文件的内容迁移到这个新文件,然后问题就开始了.
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.
有什么想法吗?
推荐答案
如果您是使用fireabse网站帐户创建的项目,则在Firebase部署期间,我们需要选择该Firebase项目进行托管.另外,如果您在firebase帐户中创建了多个项目,则需要为部署过程选择一个项目. 为此,您需要运行以下命令.
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
它将列出多个项目,您可以从该选项中选择一个. 然后运行firebase deploy.
It will list multiple project and you can choose one from that option. Then run firebase deploy.
这篇关于Firebase部署错误:授权失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!