Skip to content
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

🧐[问题 | question] 构建脚手架 安装依赖失败 #11284

Open
jishiqi-lgtm opened this issue Jul 10, 2024 · 5 comments
Open

🧐[问题 | question] 构建脚手架 安装依赖失败 #11284

jishiqi-lgtm opened this issue Jul 10, 2024 · 5 comments

Comments

@jishiqi-lgtm
Copy link

🧐 问题描述 | Problem description

按照官网步骤创建,
npm i @ant-design/pro-cli -g : 提示多个包过期警告
pro create myapp : 直接询问simple/complete, 没有询问 umi 4或3
yarn 命令后 提示多个依赖有问题或缺失

npm: 10.7.0
node: v20.13.1
yarn: 4.3.1

💻 示例代码 | Sample code

🚑 其他信息 | Other information

Yarn 4.3.1
➤ YN0000: ┌ Resolution step
➤ YN0085: │ + @ant-design/icons@npm:4.8.3, @ant-design/pro-cli@npm:3.3.0, and 2401 more.
➤ YN0000: └ Completed in 2m 58s
➤ YN0000: ┌ Post-resolution validation
➤ YN0002: │ ant-design-pro@workspace:. doesn't provide @types/node (p48fbf), requested by ts-node.
➤ YN0086: │ Some peer dependencies are incorrectly met by your project; run yarn explain peer-requirements for details, where is the six-letter p-prefixed code.
➤ YN0086: │ Some peer dependencies are incorrectly met by dependencies; run yarn explain peer-requirements for details.
➤ YN0000: └ Completed
➤ YN0000: ┌ Fetch step
➤ YN0013: │ A package was added to the project (+ 1.78 MiB).
➤ YN0000: └ Completed in 2s 886ms
➤ YN0000: ┌ Link step
➤ YN0000: │ ESM support for PnP uses the experimental loader API and is therefore experimental
➤ YN0007: │ core-js@npm:2.6.12 must be built because it never has been before or the last one failed
➤ YN0007: │ puppeteer-core@npm:1.12.2 must be built because it never has been before or the last one failed
➤ YN0007: │ esbuild@npm:0.21.4 must be built because it never has been before or the last one failed
➤ YN0007: │ core-js@npm:3.34.0 must be built because it never has been before or the last one failed
➤ YN0007: │ es5-ext@npm:0.10.64 must be built because it never has been before or the last one failed
➤ YN0007: │ core-js-pure@npm:3.37.1 must be built because it never has been before or the last one failed
➤ YN0007: │ esbuild@npm:0.18.20 must be built because it never has been before or the last one failed
➤ YN0007: │ core-js@npm:3.37.1 must be built because it never has been before or the last one failed
➤ YN0007: │ ant-design-pro@workspace:. must be built because it never has been before or the last one failed
➤ YN0009: │ ant-design-pro@workspace:. couldn't be built successfully
OS:

Node:

浏览器 | browser:

@bigbigmyworld
Copy link

我也碰到了类似问题

@wangjiandev
Copy link

npm install
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 /Users/wangjian/.npm/_logs/2024-08-08T02_58_35_856Z-eresolve-report.txt
npm error A complete log of this run can be found in: /Users/wangjian/.npm/_logs/2024-08-08T02_58_35_856Z-debug-0.log

@funnymadpia
Copy link

一样遇到了同样的问题,主要说是有组件不支持 react@"^18.2.0 ,我去 package.json 里面变为 "react": "^17.0.2", 和 "react-dom": "^17.0.2", 之后又说有组件必须要 react@"^18.2.0 版本大于 18,有点无语

@liangyishiasd
Copy link

咋解决的啊 米娜桑

@skylingfly
Copy link

直接移需要低版本的react包即可

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

6 participants