【npm 错误解决】npm ERR! code ERESOLVE

报错展示:

npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree


报错解决:

npm install --legacy-peer-deps

解析:

出现这种错误一般都是安装的依赖包有版本冲突,以上命令意思是“忽略冲突,继续安装”。

参考: https://stackoverflow.com/questions/64573177/unable-to-resolve-dependency-tree-error-when-installing-npm-packages

posted @ 2023-04-14 14:32  leah-xx  阅读(186)  评论(0编辑  收藏  举报