当我想安装npx create-react-app my-app --template redux-typescript.I时,在终端中得到一个错误
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: my-app@0.1.0
npm ERR! Found: react@18.0.0
npm ERR! node_modules/react
npm ERR! react@"^18.0.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react@"^16.8.3 || ^17" from react-redux@7.2.6发布于 2022-10-06 20:20:40
使用"npm安装-遗留-对等-deps“,因为您的应用程序路由版本是旧的,并且您安装了新版本的角CLI依赖项,因此它们之间会产生冲突。
https://stackoverflow.com/questions/71691347
复制相似问题