A
A
Alikhan2021-12-01 11:13:01
JavaScript
Alikhan, 2021-12-01 11:13:01

create-react-app not working?

After entering the command npx create-react-app client, instead of installing and creating a project, I get the following error:

Creating a new React app in C:\Users\123\Desktop\Node-React\courses.

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 (node:internal/child_process:412:11)
    at Object.spawn (node:child_process:698:9)
    at spawn (C:\Users\123\AppData\Roaming\npm\node_modules\create-react-app\node_modules\cross-spawn\index.js:12:24)
    at C:\Users\123\AppData\Roaming\npm\node_modules\create-react-app\createReactApp.js:407:19
    at new Promise (<anonymous>)
    at install (C:\Users\123\AppData\Roaming\npm\node_modules\create-react-app\createReactApp.js:359:10)
    at C:\Users\123\AppData\Roaming\npm\node_modules\create-react-app\createReactApp.js:485:16
    at processTicksAndRejections (node:internal/process/task_queues:96:5) {
  errno: -4094,
  code: 'UNKNOWN',
  syscall: 'spawn'
}

Deleting generated file... package.json
Deleting courses/ from C:\Users\123\Desktop\Node-React
Done.


What to do? How to fix it?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question