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

Got an unexpected error while creating an app in react #12746

Closed Harshad61 closed 2 years ago

Harshad61 commented 2 years ago

PS D:\React js demo file> npx create-react-app my

Creating a new React app in D:\React js demo file\my.

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:713:9) at spawn (C:\Users\harsh\AppData\Local\npm-cache_npx\c67e74de0542c87c\node_modules\cross-spawn\index.js:12:24) at C:\Users\harsh\AppData\Local\npm-cache_npx\c67e74de0542c87c\node_modules\create-react-app\createReactApp.js:383:19 at new Promise () at install (C:\Users\harsh\AppData\Local\npm-cache_npx\c67e74de0542c87c\node_modules\create-react-app\createReactApp.js:334:10) at C:\Users\harsh\AppData\Local\npm-cache_npx\c67e74de0542c87c\node_modules\create-react-app\createReactApp.js:461:16 at processTicksAndRejections (node:internal/process/task_queues:96:5) { errno: -4094, code: 'UNKNOWN', syscall: 'spawn' }

Deleting generated file... package.json Deleting my/ from D:\React js demo file Done. PS D:\React js demo file> Screenshot (1) Screenshot (2)

Harshad61 commented 2 years ago

bro thank you for your nice reply I am a beginner in javascript and react so got the error and I resolved it by myself

don't be rude if you can't help someone

rajkishoretechnovate commented 1 year ago

could you please check and know me the reason? pilatesUntitled