vue在通过npm install element-plus --save命令安装element-plus的时候报错:
error code ERESOLVE
error ERESOLVE could not resolve
While resolving: @vue/[email protected]
Found: [email protected][2m[22m
大概应该是eslint相关的版本冲突,
解决方案:在完整的指令后面添加--legacy-peer-deps
npm install element-plus --save --legacy-peer-deps
其他类似的npm操作遇到该问题也可以参考这个处理方式来处理