The long answer about why this is a complicated problem has been discussed in some blogs, for example here and here. EDIT: The firebase CLI now supports projects using TypeScript, which gives you access to ES7 syntax. It will automatically compile that down to ES6 for deployment to Cloud Functions .
Read moreIs node 8 deprecated?
The Node. js 8 runtime was deprecated on June 5th, 2020 . To ensure that your functions are on a supported version of Node. js, migrate them to Node.
Read moreWhat version of node does firebase support?
Firebase Cloud Functions now supports Node 8 .
Read moreDoes firebase support node 16?
The engines field is required; it must specify one of the supported Node. js versions in order for you to deploy and run functions. Currently firebase init functions sets this field to 16 .
Read more