【发布时间】:2020-11-05 03:07:37
【问题描述】:
functions: package.json indicates an outdated version of firebase-functions.
Please upgrade using npm install --save firebase-functions@latest in your functions directory.
=== Deploying to 'zootopia-mysite'...
i deploying functions, hosting
Running command: npm --prefix "$RESOURCE_DIR" run lint
> functions@ lint /Users/zootopia/functions
> eslint .
✔ functions: Finished running predeploy script.
Error: There was an error reading functions/package.json:
Engines field is required but was not found in functions/package.json.
To fix this, add the following lines to your package.json:
"engines": {
"node": "10"
}
我也尝试使用 npm install --save firebase-functions@latest 进行升级,但它仍然给我同样的错误。
【问题讨论】:
标签: firebase google-cloud-functions package.json firebase-hosting firebase-cli