npm 错误!修复上游依赖冲突,或使用 --force 或 --legacy-peer-deps 重试此命令

问题描述 投票:0回答:1
npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR! 
npm ERR! While resolving: [email protected]
npm ERR! Found: [email protected]

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.

我尝试安装

react-native-tesseract-ocr
。但我遇到了提到的问题。

javascript reactjs react-native npm dependencies
1个回答
0
投票

npm config set legacy-peer-deps true

它解决了我的案例中的错误

© www.soinside.com 2019 - 2024. All rights reserved.