npm run dev
时可能报错
Error: [vue-loader] vue-template-compiler must be installed as a peer dependency,
or a compatible compiler implementation must be passed
via options. at loadTemplateCompiler
报错原因:vue 和 vue-template-complier版本不一致
解决办法:
- 卸载vue-template-complier
npm remove vue-template-complier
- 重新安装vue-template-complier
npm install vue-template-complier -D
网友评论