herrdu / notes

0 stars 0 forks source link

Craco - Could not resolve dependency error #96

Open herrdu opened 1 year ago

herrdu commented 1 year ago

问题描述:

npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: aip-lbs@0.1.0
npm ERR! Found: react-scripts@5.0.1
npm ERR! node_modules/react-scripts
npm ERR!   react-scripts@"5.0.1" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react-scripts@"^4.0.0" from @craco/craco@6.4.5
npm ERR! node_modules/@craco/craco
npm ERR!   peer @craco/craco@"*" from craco-cesium@1.2.0
npm ERR!   node_modules/craco-cesium
npm ERR!     craco-cesium@"*" 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/yutao.du/.npm/eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/yutao.du/.npm/_logs/2022-10-01T07_19_40_796Z-debug-0.log

解决方法: https://stackoverflow.com/questions/67056349/craco-could-not-resolve-dependency-error