问题:在npm install 或者npm install xxxxx的时候,报npm ERR! code ERESOLVE。 解决方法:在命令后直接加-legacy-peer-deps 例如: npm install -legacy-peer-deps 这样大概率都可以解决问题!