"dependencies": {
"axios": "^0.17.0",
"element-ui": "^2.4.6",
"moment": "^2.24.0",
"screenfull": "^3.3.2",
"vue": "^2.5.2",
"vue-router": "^3.0.1",
"vuex": "^3.0.1"
},
卸载之前的element-ui版本 npm uninstall element-ui
安装想要安装的版本 npm install element-ui @2.0.7 -S
安装最新版 npm install element-ui -S
更新依赖后自动变为:
"dependencies": {
"axios": "^0.17.0",
"element-ui": "^2.13.0",
"moment": "^2.24.0",
"screenfull": "^3.3.2",
"vue": "^2.5.2",
"vue-router": "^3.0.1",
"vuex": "^3.0.1"
},