Search code examples
node.jsreactjsnpmyarnpkg

The engine "node" is incompatible with this module. Expected version "X.X.X". Got "X.X.X"


I am getting error:

The engine "node" is incompatible with this module. Expected version "10.15.1". Got "12.14.1"

How do I fix this?


Solution

  • In the package.json file there is an "engines" section.

    "engines": {
      "node": "10.15.1"
    }
    

    Update it to the expected node version.

    "engines": {
      "node": "12.14.1"
    }