Given the below cloudbuild file:
- name: 'gcr.io/cloud-builders/npm:node-18.12.0
' dir: 'functions'
entrypoint: npm
args: ['install']
- name: 'gcr.io/cloud-builders/npm:node-18.12.0'
dir: 'functions'
entrypoint: npm
args: ['test']
- name: gcr.io/my-project/firebase
env: ['ENV=development']
args: ['deploy', '--only', 'functions', '--project', 'my-project', '--debug']
timeout: 15m
We getting the below error in Cloud Build:
Deploys to runtimes below Node.js 10 are now disabled in the Firebase CLI. Existing Node.js 8 functions will stop executing on 2021-03-15. Update existing functions to Node.js 10 or greater as soon as possible.Error: package.json in functions directory has an engines field which is unsupported. Valid choices are: {"node": "10"}, {"node":"12"}, and {"node":"14"}.
Is there anyone who has resolved this issue, that can assist me in debugging?