Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why does Yarn say "Found incompatible module" when the version is correct?

When I run yarn, I receive the following error:

yarn install v0.16.1
[1/4] Resolving packages...
[2/4] Fetching packages...
error [email protected]: The engine "node" is incompatible with this module. Expected version ">=6.0.0".
error Found incompatible module
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.

However, the version of Node that I have installed is v6.9.2-pre, which seems to be correct for the version range. Any ideas why I get this error?

like image 284
Svetlana Linuxenko Avatar asked Oct 24 '16 19:10

Svetlana Linuxenko


Video Answer


2 Answers

After upgrading to current tag v7.0.0 and node -v v7.0.0 yarn work just fine. I think, this problem related to -pre release versions or maybe just about the prefix inside of the version output.

like image 175
Svetlana Linuxenko Avatar answered Sep 25 '22 22:09

Svetlana Linuxenko


To upgrade node in mac

 brew upgrade node
like image 20
Sheshank Kodam Avatar answered Sep 26 '22 22:09

Sheshank Kodam