create-react-app: Error: spawn UNKNOWN
When I try to run a basics npx create-react-app
i received this 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.
I’m using windows 10 version 20H2 and node v14.15.4.
About this issue
- Original URL
- State: open
- Created 3 years ago
- Reactions: 1
- Comments: 32
I’ve had this problem, the solution is that I uninstalled the antivirus from my computer
I removed the antivirus but still it does not work
Same here
When I try to run a basics npx create-react-app i received this error
No I don’t have any other antivirus and also I tried everything. Nothing seems to work. I have been banging my head on this error for more than 2 days.
if there are other antivirus on your computer, try deleting them all.