how to resolve firebase deploy function error: Cloud Functions deployment requires the pay-as-you-go (Blaze) billing plan
how to resolve firebase deploy function error: Cloud Functions deployment requires the pay-as-you-go (Blaze) billing plan
(基础)macbooks-mbp:函数 macbook$ firebase deploy
=== Deploying to 'fir-project1-e0b25'...
i deploying functions
Running command: npm --prefix "$RESOURCE_DIR" run lint
> functions@ lint /Users/macbook/fireCast/functions
> tslint --project tsconfig.json
运行 命令:npm --prefix "$RESOURCE_DIR" run build
> functions@ build /Users/macbook/fireCast/functions
> tsc
✔ functions: Finished running predeploy script.
i functions: ensuring required API cloudfunctions.googleapis.com is enabled...
i functions: ensuring required API cloudbuild.googleapis.com is enabled...
**⚠ functions: missing required API cloudbuild.googleapis.com. Enabling now...**
✔ functions: required API cloudfunctions.googleapis.com is enabled
Error: Cloud Functions deployment requires the pay-as-you-go (Blaze) billing plan. To upgrade your project, visit the following URL:
https://console.firebase.google.com/project/fir-project1-e0b25/usage/details
For additional information about this requirement, see Firebase FAQs:
如果您仔细阅读错误消息,它会告诉您需要做什么:
Cloud Functions deployment requires the pay-as-you-go (Blaze) billing plan. To upgrade your project, visit the following URL:
https://console.firebase.google.com/project/fir-project1-e0b25/usage/details
Cloud Functions 不再允许您在项目中没有活动的计费帐户的情况下部署针对 nodejs 10 运行时的函数。
另请参阅:
(基础)macbooks-mbp:函数 macbook$ firebase deploy
=== Deploying to 'fir-project1-e0b25'...
i deploying functions
Running command: npm --prefix "$RESOURCE_DIR" run lint
> functions@ lint /Users/macbook/fireCast/functions
> tslint --project tsconfig.json
运行 命令:npm --prefix "$RESOURCE_DIR" run build
> functions@ build /Users/macbook/fireCast/functions
> tsc
✔ functions: Finished running predeploy script.
i functions: ensuring required API cloudfunctions.googleapis.com is enabled...
i functions: ensuring required API cloudbuild.googleapis.com is enabled...
**⚠ functions: missing required API cloudbuild.googleapis.com. Enabling now...**
✔ functions: required API cloudfunctions.googleapis.com is enabled
Error: Cloud Functions deployment requires the pay-as-you-go (Blaze) billing plan. To upgrade your project, visit the following URL:
https://console.firebase.google.com/project/fir-project1-e0b25/usage/details
For additional information about this requirement, see Firebase FAQs:
如果您仔细阅读错误消息,它会告诉您需要做什么:
Cloud Functions deployment requires the pay-as-you-go (Blaze) billing plan. To upgrade your project, visit the following URL: https://console.firebase.google.com/project/fir-project1-e0b25/usage/details
Cloud Functions 不再允许您在项目中没有活动的计费帐户的情况下部署针对 nodejs 10 运行时的函数。
另请参阅: