項目下載并npm install后,執(zhí)行npm run dev 報如下錯誤:
Vue packages version mismatch:
- vue@2.7.14
- vue-template-compiler@2.5.21
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.
原因:版本不匹配,需要將vue改成和vue-template-compiler一樣的版本
方法一:改 vue
npm install vue@2.5.21 --save
方法二:改 vue-template-compiler文章來源:http://www.zghlxwxcb.cn/news/detail-653646.html
先卸載:npm uninstall vue-template-compiler
再安裝:npm install??vue-template-compiler
再執(zhí)行npm run dev,就OK了文章來源地址http://www.zghlxwxcb.cn/news/detail-653646.html
到了這里,關(guān)于Vue packages version mismatch If you are using vue-loader@>=10.0, simply update vue-template-compile的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!