Skip to content

🐛 [BUG] is:issue state:open creating my-app as mentioned on website doesnt work with npm v11.2 and node v23.9.0. npm install will not run. #11443

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
ddlittle1 opened this issue Mar 9, 2025 · 2 comments

Comments

@ddlittle1
Copy link

🐛 bug 描述

📷 复现步骤 | Recurrence steps

🏞 期望结果 | Expected results

💻 复现代码 | Recurrence code

© 版本信息

  • Ant Design Pro 版本: [e.g. 4.0.0]
  • umi 版本
  • 浏览器环境
  • 开发环境 [e.g. mac OS]

🚑 其他信息

@ddlittle1
Copy link
Author

Recreate with following steps:

  1. NVM use latest (node version 23.9.0)
  2. npm i @ant-design/pro-cli -g
  3. pro create my-app
  4. cd my-app
  5. npm i (fails here).

console displays:

npm error code ERESOLVE
npm error ERESOLVE unable to resolve dependency tree
npm error
npm error While resolving: [email protected]
npm error Found: [email protected]
npm error node_modules/react
npm error react@"^18.2.0" from the root project
npm error
npm error Could not resolve dependency:
npm error peer react@"^16.8.6 || ^17.0.2" from @antv/[email protected]
npm error node_modules/@antv/l7-react
npm error @antv/l7-react@"^2.4.3" from the root project
npm error
npm error Fix the upstream dependency conflict, or retry
npm error this command with --force or --legacy-peer-deps
npm error to accept an incorrect (and potentially broken) dependency resolution.
npm error
npm error
npm error For a full report see:
npm error C:\Users\david\AppData\Local\npm-cache_logs\2025-03-09T18_40_48_400Z-eresolve-report.txt
npm error A complete log of this run can be found in: C:\Users\david\AppData\Local\npm-cache_logs\2025-03-09T18_40_48_400Z-debug-0.log

@chenleijava
Copy link

npm install --legacy-peer-deps ,
用 yarn 或者 pnpm ;能够较好的管理依赖关系

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants