问题:vue和vue-template-compiler版本不匹配的问题
过程: 创建项目:vue init webpack-simple 名称
执行npm install
安装element
安装vue-resource:cnpm i vue-resource --save
安装vue-resource之后就报上图的错误。
解决:执行npm install之后 ,直接npm install vue-template-compile,就能正常运行了,这样之后的情况是vue-template-compile的版本比vue要高。不知道是不是因为这个原因解决的。
npm install vue-template-compile之前:
npm install vue-template-compile之后:
可以正常运行
查了一天都是在说先把vue-template-compiler卸载了,再重新下,可我只要卸载了之后再安装就会报错。所以这个办法未能解决。