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?