I tried to specify the node engine in a package.json to accept both 8
and 10
version.
I tried to type this:
"engines": {
"node": "8.x|10.x"
},
But running yarn
results in:
The engine "node" is incompatible with this module. Expected version "8.x|10.x"
If I replace with:
"engines": {
"node": "10.x"
},
... it works (i.e no error).
Is there a way to accept two versions of node engine in a package.json
?