问题描述: ERROR Failed to compile with 2 errors 上午10:42:16 error in ./src/App.vue Module build failed: Error: Vue packages version mismatch: - vue@2.6.11 (G:\2021workspace\vue\LearnVueJS2\myweb\node_modules\vue\dist\vue.runtime.common.js) - vue-template-compiler@2.6.12 (G:\2021workspace\vue\LearnVueJS2\myweb\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 lat est.
解决方法:npm update