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"
Run these commands:
sudo npm cache clean -f
sudo npm install -g n
sudo n stable
Then in your project directory run:
rm -r ./node_modules
rm ./yarn.lock
After this, yarn install | add | upgrade should work as expected.
P.S. If you are using the npm package manager, instead of rm ./yarn.lock run rm ./package-lock.json.
One time fix for the "the engine node is incompatible with this module" problem.
$ yarn install --ignore-engines
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With