npm i报错Fix the upstream dependency conflict

74 阅读1分钟

npm i报错Fix the upstream dependency conflict

这个报错是因为npm版本升级,V7版本之后对依赖冲突选择报错,停止下载,之前会无视冲突继续安装;

--force or --legacy-peer-deps

使用npm i --force (无视冲突,强制从远程仓库中获取资源并覆盖掉本地资源)

使用npm i --legacy-peer-deps(忽略所有对等依赖, 不覆盖)