Vue packages version mismatch(已解决)

2019-1-17 21:15:08 4,745 views
 
Module build failed: Error:
Vue packages version mismatch:
- vue@2.5.22
- vue-template-compiler@2.5.17


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 2.5.22,一个是vue-template-compiler 2.5.17,通过安装一样的版本即可。

我这用的是yarn

yarn add  vue-template-compiler@2.5.17  --save-dev

当然你也可以用npm或者cnpm

npm install   vue-template-compiler@2.5.17 

0

分享到微信朋友圈

打开微信,点击底部的“发现”,
使用“扫一扫”即可将网页分享至朋友圈。