下面會(huì)用到的
刪除 npm uninstall XXX
cnpm install XXX@2.0.0 -S
npm i XXX -S
原來(lái)版本
"element-ui": "^2.4.5",
想要更新到
"element-ui": "^2.11.0",
運(yùn)行:cnpm install element-ui@2.11.0 -S
√ Installed 1 packages
√ Linked 0 latest versions
√ Run 0 scripts
√ All packages installed (used 139ms(network 137ms), speed 143.37kB/s, json 1(19.64kB), tarball 0B)
沒(méi)有錯(cuò)誤
運(yùn)行:cnpm run dev
本來(lái)表格位置消失了,看到分頁(yè)數(shù)據(jù)還是有的
找問(wèn)題
一個(gè)更新時(shí)候忽視的問(wèn)題
說(shuō)你這個(gè)ui升級(jí)了 vue也要升級(jí)闯捎,那就升級(jí)一下
運(yùn)行:cnpm install vue@2.6.10 -S
再次運(yùn)行,又出了錯(cuò)誤
- vue@2.6.10
- 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.
說(shuō)要匹配如何如何
看了一下自己目前的
"vue-loader": "^13.3.0",
"vue-template-compiler": "^2.5.2",
再次安裝這兩個(gè)
cnpm install vue-template-compiler -S
cnpm install vue-loader -S
失敗
繼續(xù)玩耍了