facebook / create-react-app

Set up a modern web app by running one command.
https://create-react-app.dev
MIT License
102.69k stars 26.84k forks source link

create-react-app not working #12185

Open nim29 opened 2 years ago

nim29 commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

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

patotoma commented 2 years ago

Duplicate of https://github.com/facebook/create-react-app/issues/10670

shahidshah0101 commented 2 years ago

Uninstalled antivirus worked for me.

mshaw007 commented 2 years ago

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

Shidalgra commented 2 years ago

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

Rajguru-Aditya commented 2 years ago

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

Same for me, it didn't work

nim29 commented 2 years ago

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.

Wajahat234 commented 2 years ago

[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 commented 2 years ago

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

Amitpandey241 commented 2 years ago

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 commented 2 years ago

Check your antivirus

chammi-hansana commented 1 year ago

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 commented 1 year ago

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.