0
点赞
收藏
分享

微信扫一扫

【转载】npm node版本不匹配

最不爱吃鱼 2022-04-26 阅读 76

报错:

npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! Found: eslint@7.15.0
npm ERR! node_modules/eslint
npm ERR!   dev eslint@"7.15.0" from the root project
npm ERR!   peer eslint@">= 1.6.0" 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!   2 more (babel-eslint, eslint-plugin-vue)
npm ERR!
npm ERR! Could not resolve dependency:
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\研\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\研\AppData\Local\npm-cache\_logs\2021-11-24T05_55_23_672Z-debug.log

解决:

npm i --legacy-peer-deps

转载自:

https://my.oschina.net/berzhuan/blog/5322998
举报

相关推荐

0 条评论