mac npm 失败,跪求大佬解决方案

329 阅读1分钟

npm ERR! code ERESOLVE

npm ERR! ERESOLVE could not resolve

npm ERR!

npm ERR! While resolving: babel-loader@7.1.5

npm ERR! Found: babel-core@4.7.16

npm ERR! node_modules/babel-core

npm ERR! dev babel-core@"^4.7.16" from the root project

npm ERR!

npm ERR! Could not resolve dependency:

npm ERR! peer babel-core@"6" from babel-loader@7.1.5

npm ERR! node_modules/babel-loader

npm ERR! dev babel-loader@"^7.1.1" from the root project

npm ERR!

npm ERR! Conflicting peer dependency: babel-core@6.26.3

npm ERR! node_modules/babel-core

npm ERR! peer babel-core@"6" from babel-loader@7.1.5

npm ERR! node_modules/babel-loader

npm ERR! dev babel-loader@"^7.1.1" 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 /Users/edy/.npm/eresolve-report.txt for a full report. npm ERR! A complete log of this run can be found in:

npm

ERR! /Users/edy/.npm/_logs/2023-03-18T05_40_14_505Z-debug-0.log