简体   繁体   English

在 react18 中安装 react-lottie 时出错

[英]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.

相关问题 react-lottie,无法传递动画数据的道具 - react-lottie, unable to pass props for animationData 条带或paystack与react18不兼容 - Is stripe or paystack incompatible with react18 使用webpack从主捆绑包中排除JSON文件以进行react-lottie - Exclude JSON files from the main bundle with webpack for react-lottie WebSocket 升级到 react18 后断开连接 - WebSocket gets disconnected after upgrade to react18 如何使用 CSS 媒体查询更改 react-lottie 和 SVG 大小 - How to change react-lottie and SVG sizes using CSS media queries 如何在调整包含 react-lottie 组件的浏览器大小时保持纵横比? - How to preserve aspect ratio upon resizing browser containing a react-lottie component? 升级到 React18 / Next.js13 时,Cypress 测试突然点击失败 - Cypress tests suddenly failing on click when upgrading to React18 / Next.js13 我如何通过此错误无效的挂钩调用。 钩子只能在 function 组件的主体内部调用。 我正在使用 React18 - How do i get pass this error Invalid hook call. Hooks can only be called inside of the body of a function component. i am using React18 在visual studio代码中安装react js时出错 - Getting error while Installing react js in visual studio code 安装反应 JS 后运行 npm 启动时出错 - Getting error while running npm start after installing react JS
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM