Firebase 初始化 "Node.js 8 has been deprecated."

Firebase init "Node.js 8 has been deprecated."

当我运行firebase init开始一个新项目时package.json文件会自动创建(如下)当我去firebase 仪表板然后抛出此警告

Starting NaN, NaN, we'll no longer support new deploys or updates of Node.js 8 functions.
Starting NaN, NaN, we'll no longer support executions of existing Node.js 8 functions.

如何初始化和指定版本?或者解决方法是什么?

{
  "name": "functions",
  "description": "Cloud Functions for Firebase",
  "scripts": {
    "lint": "eslint .",
    "serve": "firebase emulators:start --only functions",
    "shell": "firebase functions:shell",
    "start": "npm run shell",
    "deploy": "firebase deploy --only functions",
    "logs": "firebase functions:log"
  },
  "engines": {
    "node": "8"
  },
  "dependencies": {
    "firebase-admin": "^8.10.0",
    "firebase-functions": "^3.6.1"
  },
  "devDependencies": {
    "eslint": "^5.12.0",
    "eslint-plugin-promise": "^4.0.1",
    "firebase-functions-test": "^0.2.0"
  },
  "private": true
}

** 主持人 我没有遇到过类似的问题,因为它们的措辞方式没有出现在 google 中。 post 每天的流量证明它对社区有帮助**

你必须改变你的 package.json

你在哪里:

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

更改为:

"engines": {
    "node": "10"
  },

firebase documentation所述。