首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >我不能用npm安装反动聊天引擎。

我不能用npm安装反动聊天引擎。
EN

Stack Overflow用户
提问于 2021-02-08 04:17:37
回答 4查看 5.9K关注 0票数 3

我不能安装

npm安装反应聊天引擎

代码语言:javascript
复制
PS C:\Users\Edgar\Downloads\project_react\aplicacion> npm install react-chat-engine
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: aplicacion@0.1.0
npm ERR! Found: react@17.0.1
npm ERR! node_modules/react
npm ERR!   react@"^17.0.1" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react@"^16.0.0" from react-chat-engine@1.5.11
npm ERR! node_modules/react-chat-engine
npm ERR!   react-chat-engine@"*" 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 C:\Users\Edgar\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\Edgar\AppData\Local\npm-cache\_logs\2021-02-08T04_05_17_318Z-debug.log

所以我试着

npm安装反应聊天引擎强制

和它起作用了,,我知道它很简单,很愚蠢,但是也许有人会用它

EN

回答 4

Stack Overflow用户

发布于 2021-02-22 13:10:05

尝试运行这个命令npm i react-chat-engine --legacy-peer-deps,它为我工作,或者您可以运行这个命令,也可以运行npm i react-chat-engine --force

票数 10
EN

Stack Overflow用户

发布于 2021-07-14 16:25:52

或者逻辑已经添加到对等依赖项中,现在是^16.8.0 || ^17.0.1,所以这个问题现在应该消失了。

票数 1
EN

Stack Overflow用户

发布于 2022-05-10 22:27:47

解决方案:npm install react-chat-engine --legacy-peer-deps

替代解决方案(不推荐):npm install react-chat-engine --force

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

https://stackoverflow.com/questions/66095851

复制
相关文章

相似问题

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