firebase cloud funtions the engine node is incompatible with this module
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
andnpm -v
matches the versions listed inpackage.json
and if not, update to match the intended version
Use nvm so you can use differents version of node.
When installed you can see all available versiosn with:
$ nvm ls-remote
v0.1.14
v0.1.15
v0.1.16
v0.1.17
v0.1.18
...
v12.13.1
v13.0.0
v13.0.1
v13.1.0
v13.2.0
Then install the version you need. For example, for version 8:
$ nvm i 8
Downloading https://nodejs.org/dist/v8.16.2/node-v8.16.2-linux-x64.tar.xz...
######################################################################## 100,0%
WARNING: checksums are currently disabled for node.js v4.0 and later
Now using node v8.16.2 (npm v6.4.1)
Test:
$ node -v
v8.16.2