Yarn: Found incompatible module calling yarn CLI

Created on 22 Mar 2018  路  2Comments  路  Source: yarnpkg/yarn

Do you want to request a feature or report a bug?
bug

What is the current behavior?
after calling any CLI command yarn I face up with

error The engine "node" is incompatible with this module. Expected version "7.8.0".
error An unexpected error occurred: "Found incompatible module".

If the current behavior is a bug, please provide the steps to reproduce.
just run yarn

Please mention your node.js, yarn and operating system version.
Yarn version:
1.5.1

Node version:
8.10.0

Platform:
darwin x64

triaged

Most helpful comment

It looks like some dependency that you have installed requires node 7.8.0 but that isn't the version you have installed. What dependencies do you have? if you run with the --ignore-engines flag, it should get past that error.

All 2 comments

It looks like some dependency that you have installed requires node 7.8.0 but that isn't the version you have installed. What dependencies do you have? if you run with the --ignore-engines flag, it should get past that error.

Some additional commentary here: https://github.com/yarnpkg/yarn/issues/3430

It's also possible that your yarn.lock file is out of sync, deleting that and re-running yarn will validate if the module is indeed incompatible.

Was this page helpful?
0 / 5 - 0 ratings