Vue packages version mismatch: - vue@2.6.14 (E:\shjz\projects\Enocare\VsCode\Accumulate\Package\v-distpicker\node_modules\vue\dist\vue.runtime.common.js) - vue-template-compiler@2.6.11 (E:\shjz\projects\Enocare\VsCode\Accumulate\Package\v-distpicker\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. Error: Vue packages version mismatch: - vue@2.6.14 (E:\shjz\projects\Enocare\VsCode\Accumulate\Package\v-distpicker\node_modules\vue\dist\vue.runtime.common.js) - vue-template-compiler@2.6.11 (E:\shjz\projects\Enocare\VsCode\Accumulate\Package\v-distpicker\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. at Object.<anonymous> (E:\shjz\projects\Enocare\VsCode\Accumulate\Package\v-distpicker\node_modules\vue-template-compiler\index.js:10:9) at Module._compile (internal/modules/cjs/loader.js:1072:14) at Object.Module._extensions..js (internal/modules/cjs/loader.js:1101:10) at Module.load (internal/modules/cjs/loader.js:937:32) at Function.Module._load (internal/modules/cjs/loader.js:778:12) at Module.require (internal/modules/cjs/loader.js:961:19) at require (internal/modules/cjs/helpers.js:92:18) at loadTemplateCompiler (E:\shjz\projects\Enocare\VsCode\Accumulate\Package\v-distpicker\node_modules\vue-loader\lib\index.js:19:12) at Object.module.exports (E:\shjz\projects\Enocare\VsCode\Accumulate\Package\v-distpicker\node_modules\vue-loader\lib\index.js:69:35) @ ./src/index.js 1:0-36 5:33-43
解决办法 下载与vue-template-compiler版本号相同的vue包
npm i vue@2.6.11 -S