修复上游依赖冲突
使用element-admin框架,node版本过高报错
修复上游依赖冲突
犯错!修复上游依赖冲突,否则retryERR!使用——force来执行这个命令。接受不正确(并且可能损坏)的依赖项解析。
大概意思是当前包的依赖项和之前安装的某些包需求的依赖项有冲突
npm i --force 或 npm i --legacy-peer-deps【忽略项目中引入的各个依赖模块之间依赖相同但版本不同的问题】
参考链接
https://blog.csdn.net/m0_73661157/article/details/131975647
使用element-admin框架,node版本过高报错
有可能是node版本和npm版本bu匹配导致的,参考一下链接解决问题
升级npm
npm install npm@9.6.7 -g
最终步骤:
打开cmd 输入set NODE_OPTIONS=–openssl-legacy-provider 在npm run dev 就好了
https://blog.csdn.net/weixin_71893751/article/details/132491152