Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

firebase cloud funtions the engine node is incompatible with this module

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?

like image 507
David Callanan Avatar asked Aug 29 '19 17:08

David Callanan


1 Answers

There's a Github issue which addressed the problem you are having. To summarize, you can:

  • run yarn config set ignore-engines true
  • Ensure the versions in node -v and npm -v matches the versions listed in package.json and if not, update to match the intended version
like image 135
JKleinne Avatar answered Oct 12 '22 23:10

JKleinne