我使用的是Resive17.0,在安装redux时,使用的命令是installing -保存-dev redux-devtools,引发以下错误
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: login-form@0.1.0
npm ERR! Found: react@17.0.2
npm ERR! node_modules/react
npm ERR! react@"^17.0.2" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react@"^0.14.9 || ^15.3.0 || ^16.0.0" from redux-devtools@3.7.0
npm ERR! node_modules/redux-devtools
npm ERR! dev redux-devtools@"*" 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 /Users/sudheer.hr/.npm/eresolve-report.txt for a full report.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/sudheer.hr/.npm/_logs/2022-01-28T08_50_19_096Z-debug-0.log这方面的任何建议都会有所帮助。
发布于 2022-03-31 02:29:30
如果您正在使用最新的Node v15和npm v7版本,npm安装redux表单将失败。
我相信这是由于国家预防机制的一些变化。
请运行以下命令:
npm install redux-form --legacy-peer-deps今天为我工作!
https://stackoverflow.com/questions/70891055
复制相似问题