[email protected] npm ERR F...">

当前位置:网站首页>NPM download error NPM err code error

NPM download error NPM err code error

2022-06-23 07:11:00 Aaron Con

Report errors :

npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR! 
npm ERR! While resolving: @vue/[email protected]
npm ERR! Found: [email protected]
npm ERR! node_modules/eslint-plugin-vue
npm ERR!   peer [email protected]"^8.0.1" from @vue/[email protected]
npm ERR!   node_modules/@vue/eslint-config-typescript
npm ERR!     dev @vue/[email protected]"^9.1.0" from the root project
npm ERR!   dev [email protected]"^8.0.3" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer [email protected]"^7.0.0" from @vue/[email protected]
npm ERR! node_modules/@vue/eslint-config-standard
npm ERR!   dev @vue/[email protected]"^6.1.0" from the root project
npm ERR!
npm ERR! Conflicting peer dependency: [email protected]    
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

solve :

npm When the download
--legacy-peer-deps
stay NPM v7 in , Now installed by default peerDependencies.

In many cases ,npm Version problems can cause download conflicts , This interrupts the installation process .

–legacy-peer-deps The sign is in v7 Introduced in , The purpose is to bypass peerDependency Automatic installation ; It tells NPM Ignore the various... Introduced in the project modules The same between modules But different versions have problems and continue to install , Ensure that different versions of each introduced dependency are used for itself modules coexistence .

原网站

版权声明
本文为[Aaron Con]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/174/202206230619139800.html