javascript - 为什么当版本正确时 Yarn 说 "Found incompatible module"?

标签 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,这对于版本范围来说似乎是正确的。我为什么会收到此错误有任何想法吗?

最佳答案

升级到当前标签 v7.0.0 和 node -v v7.0.0 后, yarn 工作正常。我认为,这个问题与 -pre 发布版本有关,或者可能只是与版本输出中的前缀有关。

关于javascript - 为什么当版本正确时 Yarn 说 "Found incompatible module"?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40225844/

相关文章:

javascript - 编写 Javascript 类的最佳方法是什么

javascript - 减少整数有效,相同增加整数无效

javascript - 使用nodejs vash模板通过脚本标签发送数据

javascript - 网页包 + react : Module parse failed: Unexpected token: You may need an appropriate loader

javascript - 在 Node.js 中打破回调函数内的 "for"循环

node.js - 为什么yarn install会下载node_modules作为依赖?

javascript - 如何使用 Angular 以自定义排序顺序显示列表?

javascript - 将元素的 ID 传递给 jquery 函数

Next.js create-next-app 将不再工作

vue.js - Yarn 通过代理安装包 - 网络问题