24次阅读
没有评论

npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: ant-design-pro@6.0.0
npm ERR! Found: react@18.2.0
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/l7-react@2.4.3
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! See C:\Users\findblunder\AppData\Local\npm-cache\eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\findblunder\AppData\Local\npm-cache_logs\2024-04-11T15_34_38_622Z-debug-0.log

出现报错:peer react@“^16.8.6 || ^17.0.2” from @antv/l7-react@2.4.3,说版本依赖冲突

使用npm install –legacy-peer-deps 命令绕过依赖冲突下载

npm install –legacy-peer-deps

正文完
 
评论(没有评论)