[英]getting error in while installing react-lottie in react18
npm ERR! code ERESOLVE
npm ERR: ERESOLVE unable to resolve dependency tree npm ERR. npm ERR:ERESOLVE 无法解析依赖关系树 npm ERR。 npm ERR.
npm 错误。 While resolving: mytestonmac@0.1.0 npm ERR.
解决时:mytestonmac@0.1.0 npm ERR。 Found.
成立。 react@18:1.0 npm ERR.
反应@18:1.0 npm 错误。 node_modules/react npm ERR.
节点模块/反应 npm 错误。 react@"^18.1.0" from the root project npm ERR.
react@"^18.1.0" 来自根项目 npm ERR。 npm ERR.
npm 错误。 Could not resolve dependency.
无法解决依赖关系。 npm ERR, peer react@"^0,14.7 || ^15.0.0 || ^16.0.0" from react-lottie@1.2.3 npm ERR!
npm ERR,对等 react@"^0,14.7 || ^15.0.0 || ^16.0.0" 来自 react-lottie@1.2.3 npm ERR! node_modules/react-lottie npm ERR!
node_modules/react-lottie npm 错误! react-lottie@"*" from the root project npm ERR!
react-lottie@"*" 来自根项目 npm 错误! npm ERR!
npm 错误! Fix the upstream dependency conflict, or retry npm ERR!
修复上游依赖冲突,或者重试 npm ERR! this command with --force, or --legacy-peer-deps npm ERR!
此命令带有 --force 或 --legacy-peer-deps npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
接受不正确的(并且可能被破坏的)依赖解决方案。 npm ERR!
npm 错误! npm ERR!
npm 错误! See /Users/apple/.npm/eresolve-report.txt for a full report.
有关完整报告,请参阅 /Users/apple/.npm/eresolve-report.txt。
npm ERR: A complete log of this run can be found in. npm ERR. npm ERR:此运行的完整日志可在 npm ERR 中找到。 /Users/apple/.npm/_logs/2022-05-10T10_42_29_299Z-debug-0.log
/Users/apple/.npm/_logs/2022-05-10T10_42_29_299Z-debug-0.log
npm i react-lottie -force
You can use -force to install library doesn't support latest ReactJS yet您可以使用 -force 安装不支持最新 ReactJS 的库
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.