npm安装报错 npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency tree

项目场景:

安装npm报错npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency tree


原因分析:

ERESOLVE与[email protected]的问题,7.x有些处理检测比6.x更严格:


解决方案:

降级npm到6版本

npx -p npm@6 npm i --legacy-peer-deps

你可能感兴趣的:(bug,nodeJS,npm,node.js,前端)