首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >当我执行任何依赖项安装时,都会收到如下错误

当我执行任何依赖项安装时,都会收到如下错误
EN

Stack Overflow用户
提问于 2022-04-28 04:45:42
回答 1查看 1.7K关注 0票数 0
代码语言:javascript
复制
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR! 
npm ERR! While resolving: chat_application@0.1.0   
npm ERR! Found: react@18.1.0
npm ERR! node_modules/react
npm ERR!   react@"^18.1.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react@"^16.8.0 || ^17.0.1" from react-chat-engine@1.11.22
npm ERR! node_modules/react-chat-engine
npm ERR!   react-chat-engine@"*" from the root project
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 C:\Users\Swapnil\AppData\Local\npm-cache\eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\Swapnil\AppData\Local\npm-cache\_logs\2022-04-28T04_06_41_338Z-debug-0.log
EN

回答 1

Stack Overflow用户

发布于 2022-04-28 04:52:55

尝试使用- npm安装-保存模块名-遗留-对等-dep。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/72038151

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档