【问题标题】:Matching the version range for all npm packages匹配所有 npm 包的版本范围
【发布时间】:2018-09-19 08:51:48
【问题描述】:

在我的 IntelliJ Idea 中,我收到以下警报: the install version "vue@2.4.2" doesn't match the version range "vue@^2.5.16

我知道怎么解决这个问题:yarn install vue@2.5.16。

但是我的所有依赖项都遇到了这个问题。不想一一解决……

【问题讨论】:

    标签: npm version package.json


    【解决方案1】:

    我通过命令解决了:yarn upgrade

    【讨论】:

    【解决方案2】:

    如果您在 dependenciesdevDependencies 中定义了相同的依赖项,也会发生这种情况。

    从这些位置之一删除依赖项,然后运行 ​​npm install 来修复它。

    【讨论】:

      猜你喜欢
      • 2022-11-28
      • 1970-01-01
      • 2018-05-12
      • 2018-06-07
      • 1970-01-01
      • 2021-05-16
      • 1970-01-01
      • 2019-08-21
      • 1970-01-01
      相关资源
      最近更新 更多