npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: [email protected]
npm ERR! Found: [email protected]
npm ERR! node_modules/react
npm ERR! react@"^18.2.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react@"^0.14.7 || ^15.0.0 || ^16.0.0" from [email protected]
npm ERR! node_modules/react-lottie
npm ERR! react-lottie@"*" 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/221021/.npm/eresolve-report.txt for a full report.
패키지를 설치하려고 하는데 설치 오류가 발생합니다.
오 맛, 그게 다야!! 지금 구글 검색
방금 오류 메시지를 읽었습니다. 설치하려는 패키지는 반응 버전 0.14.7입니다 || 15.0.0 || 당신은 16.0.0을 참조하지만 당신은 버전 18입니다^^
꼬였으니 –force, –legacy-peer-deps 로 해결해보세요 내가 말할게
npm i --legacy-peer-deps
구글에 검색하면 바로 나오길래 한번 해보고 패키지 재설치!!
아니 ㅡㅡ

npm i --force
나도 할 수 있어
아니 ㅡㅡ

npm cache clear --force
캐시를 지우려고 합니까?
아니 ㅡㅡ

npm install --legacy-peer-deps --save react-lottie
나는 화가 났고 폭풍을 찾고 있었고 블로그는 npm 설치 사이에 –legacy를 넣으라고 말했습니다!!

오마갓 설치완료!!!!

원천)

