错误描述
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 config set legacy-peer-deps true
本文指导如何处理npm中的上游依赖冲突,通过设置`npmconfigsetlegacy-peer-depstrue`来接受可能不完整但能工作的依赖解决方案,或者使用`--force`选项强制安装。
错误描述
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 config set legacy-peer-deps true
2734
2956
1179
2442
