reactjs - 在 React 中安装 botframework-webchat 库时出错
问题描述
我正在尝试使用“botframework-webchat”库创建一个新的 React 应用程序,但在运行命令时出现以下错误npm install botframework-webchat
Run `npm audit` for details.
PS C:\Users\repo\custom_react> npm install botframework-webchat
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: custom_react@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@"16.8.6" from botframework-webchat@4.13.0
npm ERR! node_modules/botframework-webchat
npm ERR! botframework-webchat@"*" 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.
谁能指导我如何解决这个错误?
解决方案
推荐阅读
- javascript - 在多帐户会话的情况下获取 Google 默认帐户
- python - 反转字符串而不影响特殊字符
- node.js - 使用无服务器,如何在 AWS lambda 函数中添加密钥作为环境变量?
- python - 单击表格 qtableWidget 的空白区域
- php - 如何从 MyAccount 导航中删除 WooCommerce 智能优惠券添加的菜单项
- javascript - 表示不等式比较限制的 Javascript 数字
- r - 处理 R 函数中缺失的因子水平
- java - 位置监听器没有运行我的 onLocationChanged
- mongodb - 我如何在猫鼬聚合上用 $ne 编译 $cond
- docker - 为什么我的符号链接没有链接,而是在我试图链接的目录中创建一个文件