运行Serve报错Vue和vue-template-compiler版本不一致问题

在vue项目运行时终端报错package.json中Vue和vue-template-compiler版本不一致,提示vue和vue-template-compiler版本不匹配的问题,解决办法:

先执行npm uninstall vue-template-compiler;然后再执行npm install vue-template-compiler@报错中提示的vue的版本号;
安装完后再次运行即可。

猜你喜欢

转载自blog.csdn.net/thesize/article/details/121922048