当我尝试使用此命令安装 react-to-pdf 包时:npm install react-to-pdf 我收到此错误

问题描述 投票:0回答:0

当我尝试使用 cmd 安装 react-to-pdf 时:npm i react-to-pdf

我找到了

npm 错误!代码 ERESOLVE 错误! ERESOLVE 无法解析依赖树 错误! 错误!解析时:第十次分配-厨师-食谱-猎人@0.0.0 错误!发现:[email protected] 错误!节点模块/反应 错误!来自根项目的 react@"^18.2.0" 错误! 错误!无法解决依赖关系: 错误! peer react@"^16.5.2" 来自 [email protected] 错误! node_modules/react-to-pdf 错误!来自根项目的 react-to-pdf@"0.0.14" 错误! 错误!修复上游依赖冲突,或者重试 错误!此命令与 --force 或 --legacy-peer-deps 错误!接受不正确(并且可能损坏)的依赖项解析。 错误! 错误!参见 C:\Users\user\AppData\Local pm-cache resolve-report.txt 获取完整报告。

npm 错误!可以在以下位置找到此运行的完整日志: 错误! C:\用户\用户\AppData\本地 pm-cache_logs�3-05-05T06_34_02_033Z-debug-0.log

那里有什么问题?

我尝试应用不同的 cmd,例如 npm i react-to-pdf@latest

installation react-to-pdf
© www.soinside.com 2019 - 2024. All rights reserved.