Vue packages version mismatch解决方案

客官°小女子只卖身不卖艺 2023-09-28 16:36 134阅读 0赞

今天拉取了一个vue项目,npm run dev报错如下:

  1. Vue packages version mismatch:
  2. - vue@2.6.14 (D:\xxx\workProjects\code\xxx-console-ui-2.0\node_modules\vue\dist\vue.runtime.common.js)
  3. - vue-template-compiler@2.7.8 (D:\xxx\workProjects\code\xxx-console-ui-2.0\node_modules\vue-template-compiler\package.json)
  4. This may cause things to work incorrectly. Make sure to use the same version for both.
  5. If you are using vue-loader@>=10.0, simply update vue-template-compiler.
  6. If you are using vue-loader@<10.0 or vueify, re-installing vue-loader/vueify should bump vue-template-compiler to the latest.

解决方案:
package.json中的版本号改为2.6.14

  1. {
  2. "name": "vue-template-compiler",
  3. "version": "2.6.14",
  4. ......

发表评论

表情:
评论列表 (有 0 条评论,134人围观)

还没有评论,来说两句吧...

相关阅读