[Solved] Yarn install Error: “error Found incompatible module.”

Today, an error was reported when installing the dependency using yarn install. After consulting the online resources, the problem was solved. Here is a record.

The error content is as follows: no matching version was found

D:\Web Storm-Workspace\xxxx>yarn install
yarn install v1.22.15
[1/6] Validating package.json...
[2/6] Resolving packages...
[3/6] Fetching packages...
info [email protected]: The platform "win32" is incompatible with this module.

info "[email protected]" is an optional dependency and failed compatibility ch
eck. Excluding it from installation.
error [email protected]: The engine "node" is incompatible with this module.
 Expected version "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0". Got "14.8
.0"
error Found incompatible module.
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about
this command.

Enter the following line of code: yarn config set ignore – engines true

The problem is solved.

D:\Web Storm-Workspace\xxxx>yarn config set ignore
-engines true

yarn config v1.22.15
success Set "ignore-engines" to "true".
Done in 0.11s.

Re-execute yarn Install, you will find that yarn is successfully installed!!!

Read More: