Vue packages version mismatch解决方案
vue工程运行bug
·
今天拉取了一个vue项目,npm run dev
报错如下:
Vue packages version mismatch:
- vue@2.6.14 (D:\xxx\workProjects\code\xxx-console-ui-2.0\node_modules\vue\dist\vue.runtime.common.js)
- vue-template-compiler@2.7.8 (D:\xxx\workProjects\code\xxx-console-ui-2.0\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.
解决方案:
将package.json
中的版本号改为2.6.14
{
"name": "vue-template-compiler",
"version": "2.6.14",
......
更多推荐
已为社区贡献2条内容
所有评论(0)