错误记录:vue跟vue编译器版本不一致

错误如下:

 error  in ./src/Utils.vue

Module build failed: Error:

Vue packages version mismatch:

- vue@2.5.13
- 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.

解决方法很简单,打开node-modules文件夹,将跟报错那个包的文件夹删掉,然后重装跟vue一致的版本

原文地址:https://www.cnblogs.com/lurenjia1994/p/9871997.html