400 Billing account for project is not found. Billing must be enabled for activation of service(s)

后端 未结 9 493
故里飘歌
故里飘歌 2021-02-05 00:31

I am create API with firebase via this tutorial here.

On I run:

firebase deploy

I get this error on the command line:

9条回答
  •  挽巷
    挽巷 (楼主)
    2021-02-05 01:12

    It works fine for me you don't have to pay I'm using firebase free tier

    1st Downgrade node version from 10 to 8 on package.json

    "engines": {
    "node": "8"
      }
    
    1. firebase deploy

    2. you'll get + Deploy complete! message above that you'll see

      + functions[helloWorld(us-central1)]: Successful update operation.

    3. this us-central is my project hosted region in your case may be differ

      prefix to this region [helloWorld is my exported function name your case it may differ get this information from your terminal by firebase deploy command

    4. After that your hosted project link will be

    https://yourregion-firebaseprojectname.cloudfunctions.net/yourexportedfunctionname 
    

    (exported function name) which is helloWorld

提交回复
热议问题