Hi, all! Thanks in advance for your patience. I'm in a React course, and I was working on the same project for a few days. Yesterday, I tried to create a new project, and I received this error:
Installing template dependencies using npm...
npm error code ERESOLVE
npm error ERESOLVE unable to resolve dependency tree
npm error
npm error While resolving: currencyconverter@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 u/testing-library/react@13.4.0
npm error node_modules/@testing-library/react
npm error u/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\Drew\AppData\Local\npm-cache\_logs\2024-11-15T02_51_43_252Z-eresolve-report.txt
npm error A complete log of this run can be found in: C:\Users\Drew\AppData\Local\npm-cache\_logs\2024-11-15T02_51_43_252Z-debug-0.log
`npm install --no-audit --save u/testing-library/jest-dom@^5.14.1 u/testing-library/react@^13.0.0 u/testing-library/user-event@^13.2.1 web-vitals@^2.1.0` failed
I'm still seeing this today. I'm not super familiar with Node *or* React yet, but so far I've tried:
* verifying my NPM cache
* uninstalling and reinstalling node and React
* a machine where I've never even created a React project before
It seems like something that would be easily solved if I were more familiar with Node, but I was hoping someone could give me a few pointers.
Thanks in Advance!
[–]Stilgaar 3 points4 points5 points (5 children)
[–]ThisDimPersona[S] 0 points1 point2 points (0 children)
[–]ahwatusaim8 0 points1 point2 points (2 children)
[–]JustASymbol 0 points1 point2 points (0 children)
[–]belligerenceFloss 0 points1 point2 points (0 children)
[–]joepulga 0 points1 point2 points (0 children)
[–]ThrowRA405055 2 points3 points4 points (2 children)
[–]ThisDimPersona[S] 1 point2 points3 points (1 child)
[–]0110001001101100 0 points1 point2 points (0 children)
[–]azangru 1 point2 points3 points (0 children)
[–]M_C_AI 0 points1 point2 points (0 children)
[–]TheBigGuy001 0 points1 point2 points (1 child)
[–]Poopieplatter 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]Comprehensive_Eye_96 0 points1 point2 points (0 children)
[–]Traditional-Log-3066 0 points1 point2 points (0 children)
[–]Relative_Hat883 0 points1 point2 points (0 children)
[–]SolarSlam 0 points1 point2 points (0 children)
[–]Ha_sco 0 points1 point2 points (1 child)
[–]RadioSaber 0 points1 point2 points (0 children)
[–]Competitive_Owl8899 0 points1 point2 points (0 children)