たくさんの自由帳

Vue packages version mismatch を直す

投稿日 : | 0 日前

文字数(だいたい) : 1289

npm audit fixしたらこうなった

本題

✖ Nuxt Fatal Error                                                                   
                                                                                      
Error:                                                                                
                                                                                      
Vue packages version mismatch:                                                        
                                                                                      
- vue@2.6.11                                                                          
- vue-server-renderer@2.6.12                                                          
                                                                                      
This may cause things to work incorrectly. Make sure to use the same version for both.

はい

直し方

vueのバージョンをあげます

npm i vue

+ vue@2.6.12とか出てればおkだと思う

これで実行できると思いきや、できない

Vue packages version mismatch:

- vue@2.6.12
- vue-template-compiler@2.6.11

というわけでnpm i vue-template-compilerの方もバージョンをあげます

npm i vue-template-compiler

これで実行できるようになりました。おつ