I've created a firebase cloud functions project which has the following dependencies added by default and the following engines:
"dependencies": {
"firebase-admin": "^8.0.0",
"firebase-functions": "^3.1.0"
},
"engines": {
"node": "8"
}
Whenever I run yarn add
I get following error and dependency not added:
error [email protected]: The engine "node" is incompatible with this module. Expected version "^8.13.0 || >=10.10.0". Got "8.11.4"
I then try change node engine version to 10 "engines": {"node": "10"}
, but now get the following error when I yarn add:
error functions@: The engine "node" is incompatible with this module. Expected version "10". Got "8.11.4"
How to solve this problem?
There's a Github issue which addressed the problem you are having. To summarize, you can:
yarn config set ignore-engines true
node -v
and npm -v
matches the versions listed in package.json
and if not, update to match the intended versionIf you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With