Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

3.5K
Views
Crear error de la aplicación React al intentar ejecutar el comando npx create react app: spawn DESCONOCIDO

Cuando intento ejecutar una npx create-react-app simple, recibí este error:

 D:\>npx create-react-app abc npx: installed 67 in 4.255s Creating a new React app in D:\abc. Installing packages. This might take a couple of minutes. Installing react, react-dom, and react-scripts with cra-template... Aborting installation. Unexpected error. Please report it as a bug: Error: spawn UNKNOWN at ChildProcess.spawn (internal/child_process.js:403:11) at Object.spawn (child_process.js:553:9) at spawn (C:\Users\Gilang\AppData\Roaming\npm-cache\_npx\17768\node_modules\create-react-app\node_modules\cross-spawn\index.js:12:24) at C:\Users\Gilang\AppData\Roaming\npm-cache\_npx\17768\node_modules\create-react-app\createReactApp.js:407:19 at new Promise (<anonymous>) at install (C:\Users\Gilang\AppData\Roaming\npm-cache\_npx\17768\node_modules\create-react-app\createReactApp.js:359:10) at C:\Users\Gilang\AppData\Roaming\npm-cache\_npx\17768\node_modules\create-react-app\createReactApp.js:485:16 at processTicksAndRejections (internal/process/task_queues.js:93:5) { errno: -4094, code: 'UNKNOWN', syscall: 'spawn' } Deleting generated file... package.json Deleting abc/ from D:\ Done.

Estoy usando Windows 10 versión 20H2 y node v14.15.4.

También hice un problema en el github oficial create-react-app aquí

over 4 years ago · Santiago Trujillo
3 answers
Answer question

0

Parece que hay un problema con el permiso de escritura.

Intente ejecutar npx create-react-app myapp desde cmd con permisos elevados, es decir, ejecute cmd como administrador y luego intente crear / crear scaffolding en su aplicación.

over 4 years ago · Santiago Trujillo Report

0

Supongo que este error ocurrió debido a una instalación global no compatible create-react-app .

Hay un pequeño punto en este problema, y es que ya no se admiten las instalaciones globales de create-react-app . Entonces, al principio, ejecute este comando

 npm uninstall -g create-react-app

Luego instale create-react-app de esta manera

 npm install create-react-app

Luego crea tu aplicación de reacción

 npx create-react-app my-app
over 4 years ago · Santiago Trujillo Report

0

Puedes intentar usar:

 npm cache clear --force

y vuelva a intentarlo.

Según el sitio web https://create-react-app.dev/docs/getting-started/ , se menciona:

Si previamente instaló create-react-app globalmente a través de npm install -g >create->react-app, le recomendamos que desinstale el paquete usando npm uninstall -g create->react-app o yarn global remove create-react- aplicación para asegurarse de que npx siempre use la última versión.

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!