1

When I run yarn install in my React Native project I get the error The engine "node" is incompatible with this module. Expected version "12". Got "14.15.4".

Where the 12 comes from is that in the package.json the line is

"engines": {
    "node": "12"
},

Where the 14.5.4 comes from is that when I run node --version it returns 14.5.4. I'm using NVM. Is there a way to change the 14.5.4 to 12 so that I can run yarn install without error?

gkeenley
  • 6,088
  • 8
  • 54
  • 129
  • Yes, see here https://stackoverflow.com/questions/53785383/how-to-change-node-js-version-with-nvm for a how to do. – benzler Aug 02 '23 at 18:54

0 Answers0