安装npm i tdesign-mobile-react
报错:
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: AwesomeProject@0.0.1
npm ERR! Found: react@18.2.0
npm ERR! node_modules/react
npm ERR! react@"18.2.0" from the root project
npm ERR! peer react@">=16.13.1" from tdesign-mobile-react@0.3.1
npm ERR! node_modules/tdesign-mobile-react
npm ERR! tdesign-mobile-react@"" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react@"^18.3.1" from react-dom@18.3.1
npm ERR! node_modules/react-dom
npm ERR! peer react-dom@">=16.13.1" from tdesign-mobile-react@0.3.1
npm ERR! node_modules/tdesign-mobile-react
npm ERR! tdesign-mobile-react@"" 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\87031\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!
tdesign-mobile-react 版本
安装时出错
重现链接
No response
重现步骤
安装npm i tdesign-mobile-react 报错: npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency tree npm ERR! npm ERR! While resolving: AwesomeProject@0.0.1 npm ERR! Found: react@18.2.0 npm ERR! node_modules/react npm ERR! react@"18.2.0" from the root project npm ERR! peer react@">=16.13.1" from tdesign-mobile-react@0.3.1 npm ERR! node_modules/tdesign-mobile-react npm ERR! tdesign-mobile-react@"" from the root project npm ERR! npm ERR! Could not resolve dependency: npm ERR! peer react@"^18.3.1" from react-dom@18.3.1 npm ERR! node_modules/react-dom npm ERR! peer react-dom@">=16.13.1" from tdesign-mobile-react@0.3.1 npm ERR! node_modules/tdesign-mobile-react npm ERR! tdesign-mobile-react@"" 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\87031\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!
期望结果
No response
实际结果
No response
框架版本
react(18.2.0)
浏览器版本
No response
系统版本
win11
Node版本
No response
补充说明
No response