Error: spawn UNKNOWN

See original GitHub issue

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.

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:1
  • Comments:30

github_iconTop GitHub Comments

7reactions
wahyunandanovancommented, Feb 11, 2022

I’ve had this problem, the solution is that I uninstalled the antivirus from my computer

2reactions
AasifFirazcommented, Feb 26, 2022

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

Read more comments on GitHub >

github_iconTop Results From Across the Web

How do I fix Error: spawn UNKNOWN with node.js v7.8.0 on ...
I had to pass an array of args to node . On windows shebang lines don't work so the command I'm executing is...
Read more >
Error: spawn UNKNOWN >> at ChildProcess.spawn ... - GitHub
plz help to solved this issue.
Read more >
Error message: spawn UNKNOWN - Hackolade
The message "errorMsg": "spawn UNKNOWN" generally occurs because Windows Group Policies are set to prevent access to the Command Prompt, while such access...
Read more >
Azure CLI Build Task Script failed with error: Error: spawn ...
When attempting to execute a powershell script using the Azure CLI Build task for Continuous Integration, it finds the file but i get...
Read more >
Unable to run realm-cli, returns node:internal/child_process
realm-cli whoami node:internal/child_process:413 throw errnoException(err, 'spawn'); ^ Error: spawn Unknown system error -86 at ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found