npm install时遇到的问题

最近在分析开源项目el-admin,运行前端部分项目时,npm install遇到了bug
之前在其他项目中运行npm install都不存在该问题

E:\myprojects\el-admin\eladmin-web-master>npm install
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR! 
npm ERR! Found: @babel/core@7.0.0
npm ERR! node_modules/@babel/core
npm ERR!   dev @babel/core@"7.0.0" from the root project
npm ERR!   peer @babel/core@"^7.0.0-0" from @babel/register@7.0.0
npm ERR!   node_modules/@babel/register
npm ERR!     dev @babel/register@"7.0.0" from the root project
npm ERR!   61 more (@vue/babel-plugin-transform-vue-jsx, ...)
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer @babel/core@"^7.4.0-0" from @babel/helper-define-polyfill-provider@0.1.5
npm ERR! node_modules/babel-plugin-polyfill-corejs2/node_modules/@babel/helper-define-polyfill-provider
npm ERR!   @babel/helper-define-polyfill-provider@"^0.1.5" from babel-plugin-polyfill-corejs2@0.1.10
npm ERR!   node_modules/babel-plugin-polyfill-corejs2
npm ERR!     babel-plugin-polyfill-corejs2@"^0.1.4" from @babel/plugin-transform-runtime@7.13.10
npm ERR!     node_modules/@babel/plugin-transform-runtime
npm ERR!       @babel/plugin-transform-runtime@"^7.4.0" from @vue/babel-preset-app@3.12.1
npm ERR!       node_modules/@vue/babel-preset-app
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 D:\Node.js\node_cache\eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in:
npm ERR!     D:\Node.js\node_cache\_logs\2021-03-10T12_22_07_961Z-debug.log

各种版本如下:
npm install时遇到的问题_第1张图片

最后使用yarn install暂时解决问题

npm install时遇到的问题_第2张图片
等待后续再遇解决了更新…

你可能感兴趣的:(bug处理,vue)