Skip to content

i am facing error during react app installation any one help me please #12054

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

Open
faisalrazzaq6990 opened this issue Feb 12, 2022 · 5 comments

Comments

@faisalrazzaq6990
Copy link

Microsoft Windows [Version 10.0.19043.1526]
(c) Microsoft Corporation. All rights reserved.

C:\Users\Developer>npm uninstall -g create-react-app

up to date, audited 1 package in 798ms

found 0 vulnerabilities

C:\Users\Developer>npm i -g npm@latest

removed 179 packages, changed 3 packages, and audited 39 packages in 13s

1 moderate severity vulnerability

To address all issues, run:
npm audit fix

Run npm audit for details.

C:\Users\Developer>sudo npm cache clean -f
'sudo' is not recognized as an internal or external command,
operable program or batch file.

C:\Users\Developer> npm cache clean -f
npm WARN using --force Recommended protections disabled.

C:\Users\Developer>npx create-react-app my-app

Creating a new React app in C:\Users\Developer\my-app.

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\Developer\AppData\Roaming\npm\node_modules\create-react-app\node_modules\cross-spawn\index.js:12:24)
at C:\Users\Developer\AppData\Roaming\npm\node_modules\create-react-app\createReactApp.js:390:19
at new Promise ()
at install (C:\Users\Developer\AppData\Roaming\npm\node_modules\create-react-app\createReactApp.js:341:10)
at C:\Users\Developer\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 my-app/ from C:\Users\Developer
Done.

@erhanfirat
Copy link

+1

@HemanthDavuluri
Copy link

try creating the project with Yarn
yarn create react-app appname

@dropDBToRun
Copy link

also

@yuequanhuabai
Copy link

+1

@patotoma
Copy link

Duplicate of #10670

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

6 participants