日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 前端技术 > vue >内容正文

vue

vue cli3.0创项目报错‘This may cause things to work incorrectly. Make sure to use the same version for b’

發布時間:2023/12/10 vue 55 豆豆
生活随笔 收集整理的這篇文章主要介紹了 vue cli3.0创项目报错‘This may cause things to work incorrectly. Make sure to use the same version for b’ 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

錯誤:

throw new Error(^Error:Vue packages version mismatch:- vue@2.6.12 (C:\Users\Administrator\AppData\Roaming\npm\node_modules\vue\dist\vue.runtime.common.js) - vue-template-compiler@2.6.11 (C:\Users\Administrator\AppData\Roaming\npm\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.at Object.<anonymous> (C:\Users\Administrator\AppData\Roaming\npm\node_modules\@vue\cli\node_modules\vue-template-compiler\index.js:10:9)at Module._compile (internal/modules/cjs/loader.js:1158:30)at Object.Module._extensions..js (internal/modules/cjs/loader.js:1178:10)at Module.load (internal/modules/cjs/loader.js:1002:32)at Function.Module._load (internal/modules/cjs/loader.js:901:14)at Module.require (internal/modules/cjs/loader.js:1044:19)at require (internal/modules/cjs/helpers.js:77:18)at Object.<anonymous> (C:\Users\Administrator\AppData\Roaming\npm\node_modules\@vue\cli\node_modules\vue-jscodeshift-adapter\src\parse-sfc.js:1:18)at Module._compile (internal/modules/cjs/loader.js:1158:30)at Object.Module._extensions..js (internal/modules/cjs/loader.js:1178:10)

大概原因就是我們的Vue packages版本一致導致的
解決方法:

按照提示找到這個文件

將這個版本號改成提示中的

再次創建解決問題

腳手架創建項目的步驟點擊這里

總結

以上是生活随笔為你收集整理的vue cli3.0创项目报错‘This may cause things to work incorrectly. Make sure to use the same version for b’的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。