共计 373 个字符,预计需要花费 1 分钟才能阅读完成。
错误提示 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 i –legacy-peer-deps
–legacy-peer-deps 命令用于绕过 peerDependency 里依赖的自动安装;它告诉 npm 忽略项目中引入的各个依赖模块之间依赖相同但版本不同的问题,以 npm v3-v6 的方式去继续执行安装操作。该命令不是真的解决冲突,而是忽略了冲突
原文地址: ERESOLVE overriding peer dependency npm install 错误
正文完