-
-
Notifications
You must be signed in to change notification settings - Fork 27k
create-react-app not working #12185
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
Comments
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. |
I had the same problem , I unistalled my antivirus and it worked. |
Duplicate of #10670 |
Uninstalled antivirus worked for me. |
I am also facing same issue, uninstalled antivirus, cleared cache but still issue is not resolved |
Yo tengo el mismo problema, estoy desinstalando el antivirus a ver que |
Same for me, it didn't work |
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. |
[error] Error: spawn UNKNOWN |
Please follow the link below - |
Do you checked your window security real-time protection it should be disabled when you |
Check your antivirus |
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. |
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. |
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.
The text was updated successfully, but these errors were encountered: