最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - Why does Yarn say "Found incompatible module" when the version is correct? - Stack Overflow

programmeradmin1浏览0评论

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  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?

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?

Share Improve this question edited Nov 23, 2016 at 21:04 Aurora0001 13.5k5 gold badges51 silver badges53 bronze badges asked Oct 24, 2016 at 19:16 Svetlana LinuxenkoSvetlana Linuxenko 4761 gold badge6 silver badges16 bronze badges 3
  • This seems to be a tag mismatch, she is talking about facebook's yarn. So no need to close. – nils Commented Oct 24, 2016 at 19:20
  • ah.. wrong tag, sorry – Svetlana Linuxenko Commented Oct 24, 2016 at 19:28
  • 6 no idea why I got this error too, but I by-passed it by using yarn install --ignore-engines – Ryan Walker Commented Sep 4, 2018 at 22:04
Add a comment  | 

2 Answers 2

Reset to default 7

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.

To upgrade node in mac

 brew upgrade node
发布评论

评论列表(0)

  1. 暂无评论