Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

243
Visualizações
React native erro

When I type npx react-native init app an error appears that I can't fix it. It was working fine until a few day ago I already tried to reinstall all the packages, yarn, choco etc.

Thanks you all.

 PS C:\Users\user\Desktop\cursorn> npx react-native init app
npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead.
This will walk you through creating a new React Native project in C:\Users\user\Desktop\cursorn\app
Using yarn v1.22.19
Installing react-native...
yarn add v1.22.19
info No lockfile found.
[1/4] Resolving packages...
warning react-native > @react-native-community/cli > @react-native-community/cli-plugin-metro > metro > metro-minify-uglify > uglify-es@3.3.9: support for ECMAScript is superseded by `uglify-js` as of v3.13.0        
warning react-native > react-native-codegen > jscodeshift > micromatch > snapdragon > source-map-resolve@0.5.3: See https://github.com/lydell/source-map-resolve#deprecated
warning react-native > react-native-codegen > jscodeshift > micromatch > snapdragon > source-map-resolve > resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
warning react-native > react-native-codegen > jscodeshift > micromatch > snapdragon > source-map-resolve > source-map-url@0.4.1: See https://github.com/lydell/source-map-url#deprecated
error Couldn't find package "commander@~2.13.0" required by "uglify-es@^3.1.9" on the "npm" 
Error: Couldn't find package "commander@^2.19.0" required by "@react-native-community/cli@^8.0.0" on the "npm" registry.
    at MessageError.ExtendableBuiltin (C:\Program Files (x86)\Yarn\lib\cli.js:721:66)
    at new MessageError (C:\Program Files (x86)\Yarn\lib\cli.js:750:123)
    at PackageRequest.<anonymous> (C:\Program Files (x86)\Yarn\lib\cli.js:36590:17)
    at Generator.throw (<anonymous>)
    at step (C:\Program Files (x86)\Yarn\lib\cli.js:310:30)
    at C:\Program Files (x86)\Yarn\lib\cli.js:323:13
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
Error: Couldn't find package "react-refresh@^0.4.0" required by "metro-react-native-babel-

  status: 1,
  signal: null,
  output: [ null, null, null ],
  pid: 10292,
  stdout: null,
  stderr: null
}
Command `yarn add react-native --exact` failed.
PS C:\Users\user\Desktop\cursorn> npm react-native init app
npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead.
Unknown command: "react-native"

To see a list of supported npm commands, run:
  npm help
PS C:\Users\user\Desktop\cursorn> 
about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda