I try to do a yarn add
, but I have this error:
The engine "node" is incompatible with this module. Expected version "12.x". Got "14.8.0"
I can suggest 2 solutions :
1/ It works but it's probably not the best way
You just have to update your packages.json.
currently :
"engines": {
"node": "12.x"
}
updated :
"engines": {
"node": "14.8.0"
}
2/ I think it's a cleaner way
You can use nvm use x
to use the Node version.
exemple : nvm use 14
to use node version 14
Maybe you have to run :nvm install 14
before