报错内容:
npm install element-ui -S
npm error code ERESOLVE
npm error ERESOLVE unable to resolve dependency tree
npm error
...
npm error A complete log of this run can be found in: F:\selfApps\nodejs\node_cache_logs\2025-10-22T02_54_01_597Z-debug-0.log
原因是这段安装命令是在一个Vue 3项目中安装Element UI,但是Element UI只支持
所以改为下面的命令即可:
Vue 2npm install element-plus --save