Skip to content
This repository has been archived by the owner on Apr 7, 2024. It is now read-only.

npm install --force or --legacy-peer-deps #346

Open
kemisstep opened this issue Nov 27, 2023 · 2 comments
Open

npm install --force or --legacy-peer-deps #346

kemisstep opened this issue Nov 27, 2023 · 2 comments

Comments

@kemisstep
Copy link

npm install ali-react-table
安装提示:

npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: next_tspage@0.1.0
npm ERR! Found: react@18.2.0
npm ERR! node_modules/react
npm ERR! react@"^18" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react@"^16.8.0 || ^17.0.1" from ali-react-table@2.6.1
npm ERR! node_modules/ali-react-table
npm ERR! ali-react-table@"*" 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 ERR! C:\Users\admin\AppData\Local\npm-cache_logs\2023-11-27T06_40_32_509Z-eresolve-report.txt

npm ERR! A complete log of this run can be found in: C:\Users\admin\AppData\Local\npm-cache_logs\2023-11-27T06_40_32_509Z-debug-0.log

@kemisstep
Copy link
Author

解决: npm install ali-react-table --legacy-peer-deps
可以解决的,但是有强迫症的看着难受

@kemisstep
Copy link
Author

麻烦作者更新react依赖项目

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

No branches or pull requests

1 participant