Fix the upstream dependency conflict, or retry npm ERR! this command with --force, or --legacy-pe
今天在执行 npm i 的时候报了以上错误
报错原因是:
使用的npm版本是7.20.0,npm7对peerDependencies要求严格,npm6允许通过的部分不再允许通过。
解决方法:
使用以下两个参数忽略,或者直接继续使用npm6。
npm install --legacy-peer-deps
npm install --force