当我运行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
,这对于版本范围来说似乎是正确的。我有什么想法可以得到这个错误吗?
答案 0 :(得分:3)
升级到当前代码v7.0.0
和节点-v v7.0.0
纱线工作正常。我认为,这个问题与-pre
发布版本有关,也可能与版本输出中的前缀有关。
答案 1 :(得分:1)
要在Mac中升级节点
brew upgrade node