为了用页面创建项目执行 

//卸载vue 客户端
npm uninstall vue-cli -g
//安装vue客户端最新
npm install -g @vue/cli

执行vue ui报错

�  Starting GUI...
 ERROR  Error:

Vue packages version mismatch:

- [email protected] (E:\nodejs\node_global\node_modules\vue\dist\vue.runtime.common.js)

- [email protected] (E:\nodejs\node_global\node_modules\@vue\cli\node
_modules\vue-template-compiler\package.json)

This may cause things to work incorrectly. Make sure to use the same version for
 both.
If you are using [email protected]>=10.0, simply update vue-template-compiler.
If you are using [email protected]<10.0 or vueify, re-installing vue-loader/vueify sho
uld bump vue-template-compiler to the latest.

vue执行 vue ui报错 vue和vue-template-compiler版本不匹配

解决方案

npm list vue-template-compiler -g

查看版本发现vue-template-compiler为2.6.11 就想着把vue-template-compiler升上去没想到不行

后改为卸载vue-cli

执行

npm uninstall vue-cli -g

接着安装[email protected]  npm install -g [email protected]

再执行 vue ui成功打开vue创建项目的页面

vue执行 vue ui报错 vue和vue-template-compiler版本不匹配

 

vue执行 vue ui报错 vue和vue-template-compiler版本不匹配

相关文章: