匹配所有 npm 包的版本范围
Matching the version range for all npm packages
在我的 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.
但是我的所有依赖项都遇到了这个问题。我不想一一解决...
我是通过命令解决的:yarn upgrade
如果您在 dependencies
和 devDependencies
中定义了相同的依赖项,也会发生这种情况。
从这些位置之一删除依赖项,然后 运行 npm install
修复它。
在我的 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.
但是我的所有依赖项都遇到了这个问题。我不想一一解决...
我是通过命令解决的:yarn upgrade
如果您在 dependencies
和 devDependencies
中定义了相同的依赖项,也会发生这种情况。
从这些位置之一删除依赖项,然后 运行 npm install
修复它。