# npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency tree 处理办法

> npm ERR! peer eslint@">=1.6.0 <7.0.0" from eslint-loader@2.2.1 npm ERR! node_modules/@vue/cli-plugin-eslint/node_modules…

- 原文：https://www.l2qq.com/article/166
- 发布：2022-02-12T08:37:46Z
- 作者：l2qq

---

```
npm ERR! peer eslint@">=1.6.0 <7.0.0" from eslint-loader@2.2.1
npm ERR! node_modules/@vue/cli-plugin-eslint/node_modules/eslint-loader
npm ERR! eslint-loader@"^2.2.1" from @vue/cli-plugin-eslint@4.4.6
npm ERR! node_modules/@vue/cli-plugin-eslint
npm ERR! dev @vue/cli-plugin-eslint@"4.4.6" from the root project
npm ERR!
npm ERR! 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.
npm ERR!
npm ERR! See C:\Users\86139\AppData\Local\npm-cache\eresolve-report.txt for a full report.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\86139\AppData\Local\npm-cache\_logs\2022-02-12T08_31_09_940Z-debug.log
```
npm i --legacy-peer-deps 能处理npm i 因版本问题导致的报错
