Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

create-react-app not working #12185

Open
nim29 opened this issue Mar 20, 2022 · 14 comments
Open

create-react-app not working #12185

nim29 opened this issue Mar 20, 2022 · 14 comments

Comments

@nim29
Copy link

nim29 commented Mar 20, 2022

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

Deleting generated file... package.json
Deleting wsp-1/ from C:\Users\Fast laptop\Desktop
Done.

@cedricheijlman
Copy link

Try to clean the cache npm cache clean --force than npx clear-npx-cache and run again npx create-react-app my-app or npx create-react-app@latest my-app --use-npm.

If You still have this problem run Try to run cmd as administrator. If You installed create-react-app globaly than run npm uninstall -g create-react-app.

@imdevk
Copy link

imdevk commented Apr 11, 2022

I had the same problem , I unistalled my antivirus and it worked.

@patotoma
Copy link

Duplicate of #10670

@shahidshah0101
Copy link

Uninstalled antivirus worked for me.

@mshaw007
Copy link

I am also facing same issue, uninstalled antivirus, cleared cache but still issue is not resolved

@Shidalgra
Copy link

Shidalgra commented May 19, 2022

Yo tengo el mismo problema, estoy desinstalando el antivirus a ver que

@Rajguru-Aditya
Copy link

I am also facing same issue, uninstalled antivirus, cleared cache but still issue is not resolved

Same for me, it didn't work

@nim29
Copy link
Author

nim29 commented Jun 11, 2022

Right-click on the command prompt select Run as administrator and type npm i create-react-app. After installing close the program and make a folder, open cmd, go to the folder and run npx uninstall create-react-app, also run npx uninstall -g create-react-app and after that run npx create-react-app issue resolved.

@nim29 nim29 closed this as completed Jun 11, 2022
@nim29 nim29 reopened this Jun 11, 2022
@Wajahat234
Copy link

[error] Error: spawn UNKNOWN
at ChildProcess.spawn (node:internal/child_process:413:11)
at Object.spawn (node:child_process:700:9)
at module.exports (F:\OMS SOFTWARE\OMS SOFTWARE\Betpro\Trade-Bpro\node_modules\open\index.js:127:34)
at MergeMapSubscriber.project (F:\OMS SOFTWARE\OMS SOFTWARE\Betpro\Trade-Bpro\node_modules@angular-devkit\build-angular\src\dev-server\index.js:243:27)
at runMicrotasks ()
at processTicksAndRejections (node:internal/process/task_queues:96:5)

@Amitpandey241
Copy link

Please follow the link below -
https://stackoverflow.com/a/72879257/15512430
it should solve your error

@Amitpandey241
Copy link

Amitpandey241 commented Jul 6, 2022

I am also facing same issue, uninstalled antivirus, cleared cache but still issue is not resolved

Do you checked your window security real-time protection it should be disabled when you npx create-react-app appname

@aroman29
Copy link

Check your antivirus

@chammi-hansana
Copy link

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

Deleting generated file... package.json Deleting wsp-1/ from C:\Users\Fast laptop\Desktop Done.

Use a different network: For example, you can try connecting to a different Wi-Fi network or using a mobile hotspot.

Hope this should help you.This Works For me.

@chammi-hansana
Copy link

I am also facing same issue, uninstalled antivirus, cleared cache but still issue is not resolved

Same for me, it didn't work

Use a different network: For example, you can try connecting to a different Wi-Fi network or using a mobile hotspot.

Hope this should help you.This Works For me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests