Vue packages version mismatch:
- vue@2.6.11 (C:\Users\Administrator\AppData\Local\Yarn\Data\global\node_modules\vue\dist\vue.runtime.common.js)
- vue-template-compiler@2.6.10 (C:\Users\Administrator\AppData\Local\Yarn\Data\global\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版本与vue-template-compiler版本不一致
解决办法
vue版本降级
1.删除C:\Users\Administrator\AppData\Local\Yarn\Data\global\node_modules\vue的vue文件夹
2.下载vue@2.6.10
npm i vue@2.6.10 -g
3.重新开始项目的下载
vue create demo
即可完成项目的下载。