npm install 安装报错:Fix the upstream dependency conflict
报错:
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
正确解决:
有两个命令可以解决此问题
- –force 无视冲突,强制获取远端npm库资源 (覆盖之前)
- –legacy-peer-deps 忽视依赖冲突,继续安装(不覆盖之前)
正确的语句:
npm install axios --force //或者
npm install axios --legacy-peer-deps