npm install 报错 npm ERR! While resolving: ant-design-pro

npm ERR! code ERESOLVE

npm ERR! ERESOLVE unable to resolve dependency tree

npm ERR!

npm ERR! While resolving: [email protected]

npm ERR! Found: [email protected]

npm ERR! node_modules/react

npm ERR! react@"^18.2.0" from the root project

npm ERR!

npm ERR! Could not resolve dependency:

npm ERR! peer react@"^16.8.6 || ^17.0.2" from @antv/[email protected]

npm ERR! node_modules/@antv/l7-react

npm ERR! @antv/l7-react@"^2.4.3" from the root project

npm ERR!

npm ERR! Fix the upstream dependency conflict, or retry

npm ERR! this command with --force or --legacy-peer-deps

npm ERR! to accept an incorrect (and potentially broken) dependency resolution.

npm ERR!

npm ERR!

npm ERR! For a full report see:

使用 命令

npm install --legacy-peer-deps

相关推荐
Carlos_sam26 分钟前
OpenLayers:封装Tooltip
前端·javascript
工呈士39 分钟前
MobX与响应式编程实践
前端·react.js·面试
嘉小华40 分钟前
Android Lifecycle 使用
前端
Sherry00742 分钟前
实时数据传输协议:WebSocket vs MQTT
前端·websocket
然我43 分钟前
JavaScript的OOP独特之道:从原型继承到class语法
前端·javascript·html
腹黑天蝎座1 小时前
如何更好的实现业务中图片批量上传需求
前端
嘉小华1 小时前
Android Lifecycle 源码解析
前端
不_喜1 小时前
游戏开发零散知识点和优化记录
前端
去伪存真1 小时前
提交规范靠吼没用,看我用“shell+husky螺丝刀”,一键给40多个项目上锁
前端·eslint
翠莲1 小时前
vue3+TS+eslint9配置
前端·代码规范