【问题标题】:Yarn throws error for dependent dependenciesYarn 对依赖依赖项抛出错误
【发布时间】:2017-06-27 16:55:02
【问题描述】:

我遇到了纱线错误。

错误模块B@0.1.2:引擎“节点”与此模块不兼容。预期版本“~0.10.22”。

下面是我的package.json

"engines": {
  "node": ">4.0.0"
}
"dependencies": {
  "moduleA": "^x.x.x"
}

moduleA 有依赖关系

“依赖”:{ “模块B”:“^3.3.3” }

我试过了moduleB。

npm show moduleB engines
{ node: '>=4.0.0 < 7.0.0' }

任何线索。非常感谢!

【问题讨论】:

    标签: npm dependencies yarnpkg


    【解决方案1】:

    很可能是因为 moduleB 包,我在 svgutils 上遇到了完全相同的问题,查看了我在 包中找到的 GitHub 上的源代码。 json 如下:

      "engines": {
        "node": "~0.10.22"
      }
    

    您可以为他们创建问题,也可以分叉存储库并进行必要的更改。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2012-11-18
      • 2019-01-20
      • 2019-12-14
      • 1970-01-01
      • 2017-12-03
      • 2018-07-19
      • 2015-11-16
      • 1970-01-01
      相关资源
      最近更新 更多