【问题标题】:npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency treenpm 错误!代码 ERESOLVE npm 错误! ERESOLVE 无法解析依赖树
【发布时间】:2022-10-07 04:20:40
【问题描述】:

当我想安装npx create-react-app my-app --template redux-typescript时,终端出现错误

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

标签: reactjs typescript redux-toolkit


【解决方案1】:

使用“npm install --legacy-peer-deps” 因为您的应用程序路由版本旧并且您安装了新版本的 Angular CLI 依赖项,所以它们之间会产生冲突。

【讨论】:

    猜你喜欢
    • 2022-06-23
    • 2021-06-16
    • 1970-01-01
    • 1970-01-01
    • 2022-01-25
    • 2021-03-24
    • 2022-01-08
    • 2021-08-04
    • 2021-09-25
    相关资源
    最近更新 更多