npm下载报错npm ERR code ERESOLVE
生活随笔
收集整理的這篇文章主要介紹了
npm下载报错npm ERR code ERESOLVE
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
報錯:
npm ERR! code ERESOLVE npm ERR! ERESOLVE could not resolve npm ERR! npm ERR! While resolving: @vue/eslint-config-standard@6.1.0 npm ERR! Found: eslint-plugin-vue@8.7.1 npm ERR! node_modules/eslint-plugin-vue npm ERR! peer eslint-plugin-vue@"^8.0.1" from @vue/eslint-config-typescript@9.1.0 npm ERR! node_modules/@vue/eslint-config-typescript npm ERR! dev @vue/eslint-config-typescript@"^9.1.0" from the root project npm ERR! dev eslint-plugin-vue@"^8.0.3" from the root project npm ERR! npm ERR! Could not resolve dependency: npm ERR! peer eslint-plugin-vue@"^7.0.0" from @vue/eslint-config-standard@6.1.0 npm ERR! node_modules/@vue/eslint-config-standard npm ERR! dev @vue/eslint-config-standard@"^6.1.0" from the root project npm ERR! npm ERR! Conflicting peer dependency: eslint-plugin-vue@7.20.0 t 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\danxibao\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\danxibao\AppData\Local\npm-cache\_logs\2022-05-29T07_02_09_565Z-debug-0.log解決::
npm下載時
--legacy-peer-deps
在NPM v7中,現在默認安裝peerDependencies。
在很多情況下,npm版本問題會導致下載沖突,從而中斷安裝過程。
–legacy-peer-deps標志是在v7中引入的,目的是繞過peerDependency自動安裝;它告訴 NPM 忽略項目中引入的各個modules之間的相同modules但不同版本的問題并繼續安裝,保證各個引入的依賴之間對自身所使用的不同版本modules共存。
總結
以上是生活随笔為你收集整理的npm下载报错npm ERR code ERESOLVE的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: SQL数据库被置疑后的恢复步骤(附详细图
- 下一篇: eclipse配置PHP自动提示代码