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:
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:\Project\React Course> npx uninstall react react-dom
npm error A complete log of this run can be found in: C:\Users\tanma\AppData\Local\npm-cache_logs\2024-12-25T08_07_29_799Z-debug-0.log
- Node version - 22.12.0
- npm version - 10.9.0