Firebase Deploy - “Unable to Authorize” error

后端 未结 2 1414
予麋鹿
予麋鹿 2021-01-23 15:56

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 o
相关标签:
2条回答
  • 2021-01-23 16:09

    First warning shows you have to update firebase-cli.

    Run this command to update:

    npm install -g firebase-tools
    

    Your project may not have been linked which causes that error.

    Run this command 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 command every time once you run use --add command

    0 讨论(0)
  • 2021-01-23 16:14

    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]
    
    0 讨论(0)
提交回复
热议问题