Info About Node version

Starting March 2021 Firebase will require Cloud Functions to run on NodeJS version 10 and above, currenlty we use NodeJS 8 which is deprecated, so if you want to upgrade to NodeJS 10 make sure to UPGRADE your Firebase Project to Blaze Plan and then open your package.json file and change the node version to 10 like this

{
  "name": "functions",
  "description": "Cloud Functions for Firebase",
  "dependencies": {
    "firebase-admin": "8.9.1",
    "firebase-functions": "^3.3.0",
    "lodash": "^4.17.10"
  },
  "private": true,
  "engines": {
    "node":"10" //HERE
  }
}

and after that make sure to run firebase deploy command so the changes can take effect.