出现错误

Vue packages version mismatch:

  • vue@2.6.12 (/Users/work_ws/project/my/astar-education/astar-education-ui/node_modules/vue/dist/vue.runtime.common.js)
  • vue-template-compiler@2.6.13 (/Users/work_ws/project/my/astar-education/astar-education-ui/node_modules/vue-template-compiler/package.json)

This may cause things to work incorrectly. Make sure to use the same version for both.
If you are using vue-loader@>=10.0, simply update vue-template-compiler.
If you are using vue-loader@<10.0 or vueify, re-installing vue-loader/vueify should bump vue-template-compiler to the latest.

解决

卸载vue-template-compiler

npm uninstall vue-template-compiler
  • 1.

重新安装vue-template-compiler

vue项目启动报错 vue与vue-template-compiler版本不一致_json

npm uninstall vue-template-compiler@2.6.12
  • 1.

一定要与vue版本一致