react 잘 쓰다가 오늘 프로젝트 하나 다시 만들었는데 오류가 생깁니다.
Installing template dependencies using npm...
npm error code ERESOLVE
npm error ERESOLVE unable to resolve dependency tree
npm error
npm error While resolving: blog@0.1.0
npm error Found: react@19.0.0
npm error node_modules/react
npm error react@"^19.0.0" from the root project
npm error
npm error Could not resolve dependency:
npm error peer react@"^18.0.0" from @testing-library/react@13.4.0
npm error node_modules/@testing-library/react
npm error @testing-library/react@"^13.0.0" from the root project
npm error
npm error Fix the upstream dependency conflict, or retry
npm error this command with --force or --legacy-peer-deps
npm error to accept an incorrect (and potentially broken) dependency resolution.
npm error
npm error
npm error For a full report see:
npm error C:\Users\hola-\AppData\Local\npm-cache\_logs24-12-10T01_57_45_339Z-eresolve-report.txt
npm error A complete log of this run can be found in: C:\Users\hola-\AppData\Local\npm-cache\_logs24-12-10T01_57_45_339Z-debug-0.log
`npm install --no-audit --save @testing-library/jest-dom@^5.14.1 @testing-library/react@^13.0.0 @testing-library/user-event@^13.2.1 web-vitals@^2.1.0` failed
19버전이랑 충돌나는 것 같은데
npx는 최신버전으로 자동 설치하게 되더라구요
npm uninstall하고 설치해도 기존의 오류와 동일합니다.
잘되다가 갑자기 안되네요..
2시간 삽질하다 힘들어서 도움 청해봅니다..
아, 참고로 node 22->18->20 다 설치해봤으나 안되네요.. 지금 22lts쓰고 있네요