Bom dia a todos.
Estou fazendo o curso de React e quando cheguei na etapa de npx create-react-app o seguinte erro aparece:
npm error code ERESOLVE npm error ERESOLVE unable to resolve dependency tree npm error npm error While resolving: organo@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
Vi na internet para se usar o comando npm install --legacy-peer-deps na pasta do projeto, mas quando uso o comando aparece:
npm error code ENOENT npm error syscall open npm error path D:\Programação\Cursos\React\Alura 1\package.json npm error errno -4058 npm error enoent Could not read package.json: Error: ENOENT: no such file or directory, open 'D:\Programação\Cursos\React\Alura 1\package.json' npm error enoent This is related to npm not being able to find a file. npm error enoent npm error A complete log of this run can be found in: C:\Users\paulo\AppData\Local\npm-cache_logs\2025-01-09T12_20_41_556Z-debug-0.log
Alguem sabe como resolver?