Dav*_*nan 10 node.js npm firebase google-cloud-functions yarnpkg
我创建了一个 firebase 云函数项目,它默认添加了以下依赖项和以下引擎:
"dependencies": {
"firebase-admin": "^8.0.0",
"firebase-functions": "^3.1.0"
},
"engines": {
"node": "8"
}
Run Code Online (Sandbox Code Playgroud)
每当我运行时,yarn add我都会收到以下错误并且未添加依赖项:
error firebase-admin@8.4.0: The engine "node" is incompatible with this module. Expected version "^8.13.0 || >=10.10.0". Got "8.11.4"
Run Code Online (Sandbox Code Playgroud)
然后我尝试将节点引擎版本更改为 10 "engines": {"node": "10"},但现在当我添加纱线时出现以下错误:
error functions@: The engine "node" is incompatible with this module. Expected version "10". Got "8.11.4"
Run Code Online (Sandbox Code Playgroud)
如何解决这个问题呢?
| 归档时间: |
|
| 查看次数: |
3244 次 |
| 最近记录: |