【发布时间】: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
在我的 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
我通过命令解决了:yarn upgrade
【讨论】:
如果您在 dependencies 和 devDependencies 中定义了相同的依赖项,也会发生这种情况。
从这些位置之一删除依赖项,然后运行 npm install 来修复它。
【讨论】: