为什么Yarn说"发现不兼容的模块"什么时候版本正确?

时间:2016-10-24 19:16:11

标签: javascript node.js yarnpkg

当我运行yarn时,收到以下错误:

yarn install v0.16.1
[1/4] Resolving packages...
[2/4] Fetching packages...
error recursive-iterator@2.0.1: 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.

但是,我安装的Node版本是v6.9.2-pre,这对于版本范围来说似乎是正确的。我有什么想法可以得到这个错误吗?

2 个答案:

答案 0 :(得分:3)

升级到当前代码v7.0.0和节点-v v7.0.0纱线工作正常。我认为,这个问题与-pre发布版本有关,也可能与版本输出中的前缀有关。

答案 1 :(得分:1)

要在Mac中升级节点

 brew upgrade node