create-react-app icon indicating copy to clipboard operation
create-react-app copied to clipboard

create-react-app not working

Open nim29 opened this issue 3 years ago • 12 comments

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.

nim29 avatar Mar 20 '22 06:03 nim29

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.

cedricheijlman avatar Mar 22 '22 13:03 cedricheijlman

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

imdevk avatar Apr 11 '22 08:04 imdevk

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

patotoma avatar Apr 23 '22 01:04 patotoma

Uninstalled antivirus worked for me.

shahidshah0101 avatar May 06 '22 11:05 shahidshah0101

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

mshaw007 avatar May 14 '22 09:05 mshaw007

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

Shidalgra avatar May 19 '22 17:05 Shidalgra

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

Same for me, it didn't work

Rajguru-Aditya avatar Jun 09 '22 17:06 Rajguru-Aditya

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 avatar Jun 11 '22 17:06 nim29

[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)

Wajahat234 avatar Jun 28 '22 11:06 Wajahat234

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

Amitpandey241 avatar Jul 06 '22 12:07 Amitpandey241

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

Amitpandey241 avatar Jul 06 '22 12:07 Amitpandey241

Check your antivirus

aroman29 avatar Oct 18 '22 13:10 aroman29

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 avatar May 08 '23 11:05 chammi-hansana

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.

chammi-hansana avatar May 08 '23 11:05 chammi-hansana