Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

The engine "node" is incompatible with this module. Expected version "12.x". Got "14.8.0"

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"
like image 380
Anroche Avatar asked Jan 21 '26 04:01

Anroche


2 Answers

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.

like image 152
zilijonas Avatar answered Jan 22 '26 17:01

zilijonas


One time fix for the "the engine node is incompatible with this module" problem.

$ yarn install --ignore-engines
like image 39
Lee Derting Avatar answered Jan 22 '26 18:01

Lee Derting



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!