vue安装依赖包时提示core.js安装失败
vue安装依赖包时提示core.js安装失败
问题:git上拉下代码,npm i安装依赖包完成后,报错,安装core.js的一些文件失败;
原因:我遇到的是版本问题;
解决:将core-js的版本由3.0.0换成2.6.5,安装成功,项目成功启动;
在命令行输入:
npm install core-js@2.6.5 --save
"dependencies": {
“axios”: “^0.18.0”,
“core-js”: “^3.0.0”, //此处修改版本为2.6.5
“register-service-worker”: “^1.6.2”,
“vue”: “^2.6.6”,
“vue-router”: “^3.0.1”,
“vuex”: “^3.0.1”
},
安装后:
"dependencies": {
"axios": "^0.21.1",
"core-js": "^2.6.5",
"express": "^4.17.1",
"express-fileupload": "^1.1.9",
"md5": "^2.3.0",
"music-metadata": "^7.5.3",
"pac-proxy-agent": "^4.0.0",
"qrcode": "^1.4.4",
"tunnel": "^0.0.6"
},
还没有留言,还不快点抢沙发?