Cloud Functions deployment requires the pay-as-you-go (Blaze) billing plan

Viewed 10507

After i upgraded to node 10, i am facing this error when deploy my functions

 Cloud Functions deployment requires the pay-as-you-go (Blaze) billing plan.

Is downgrading node will solve the problem at least temporarily, Is there a way to solve the problem without downgrading??

1 Answers

Change the following in functions/package.json:

"engines": {
  "node": "8"
}

It should solve the problem (for now), the official doc.

TL;DR:

  • Node.js 10. This runtime requires the Blaze pay-as-you-go billing plan. This plan provides generous amounts of invocations, compute time, and internet traffic free of charge. See Cloud Functions pricing.
  • Node.js 8 (deprecated as of June 8, 2020). Deployment of Node.js 8 functions will no longer be allowed after February 15, 2020. Then, executions of already-deployed Node.js 8 functions will stop after March 15, 2021. If you have deployed functions to the Node.js 8 runtime, you're recommended to upgrade to the Node.js 10 runtime.
Related