Vue packages version mismatch: 版本始終不對的解決方案

 error  in ./src/pages/home.vue


Module build failed: Error:


Vue packages version mismatch:


- [email protected]

- vue-template-compiler@2.5.13


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 sho

uld bump vue-template-compiler to the latest.


出現這種錯誤之後可以使用命令,將vue的版本改成和vue-template-compiler的版本一致,使用命令

npm install vue@2.5.13 --save,然後直接運行就可以了!


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章