I am new to React and I just started learning I was creating my first React app using this command mentioned on react.dev website:
npx create-react-app my-app
and it is throwing error as mentioned in the screenshot
Installing template dependencies using npm…
npm error code ERESOLVE
npm error ERESOLVE unable to resolve dependency tree
npm error
npm error While resolving: [email protected]
npm error Found: [email protected]
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/[email protected]
npm error node_modules/@testing-library/react
npm error @testing-library/react@”^13.0.0″ from the root project
PS D:ProjectReact Course> npx uninstall react react-dom
npm error A complete log of this run can be found in: C:UserstanmaAppDataLocalnpm-cache_logs2024-12-25T08_07_29_799Z-debug-0.log
Node version – 22.12.0
Npm version – 10.9.0
Please help me in solving this problem.
Dont know what to do…….
Gamerz is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.