Vue packages version mismatch Solution

Workbench project created in a vue / cli3 of, vue create the project name, the error message is as follows:

ERROR Error:

Vue packages version mismatch:

[email protected] (D:\softwares\node\node_global\node_modules\vue\dist\vue.runtime.common.js)
[email protected] (D:\softwares\node\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 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.

So Baidu two common solutions:
Method One:
npm Uninstall VUE-Template-Compiler // uninstall already installed version
npm i vue-template-compiler @ current version number --save // Here is the current version number vue version
did not succeed ~~~

Method Two:
npm install
npm Update
or no success ~~~

Finally found a previous version of vue-cli2 not cleaned, vue.runitme.common.js find the file delete it (based on an error in the path tips)
success !!!

Guess you like

Origin www.cnblogs.com/shemingxin/p/12466633.html