reactjs / react.dev

The React documentation website
https://react.dev/
Creative Commons Attribution 4.0 International
11.02k stars 7.53k forks source link

I caught an issue while creating react-app with the below command #4771

Closed vanishree165 closed 2 years ago

vanishree165 commented 2 years ago

C:\Users\vanishree.r>npx create-react-app sample-react-app npx: installed 67 in 24.301s

Creating a new React app in C:\Users\vanishree.r\sample-react-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 (internal/child_process.js:403:11) at spawn (child_process.js:667:9) at Object.spawnWithSignal [as spawn] (child_process.js:871:17) at spawn (C:\Users\vanishree.r\AppData\Roaming\npm-cache_npx\1628\node_modules\create-react-app\node_modules\cross-spawn\index.js:12:24) at C:\Users\vanishree.r\AppData\Roaming\npm-cache_npx\1628\node_modules\create-react-app\createReactApp.js:383:19 at new Promise () at install (C:\Users\vanishree.r\AppData\Roaming\npm-cache_npx\1628\node_modules\create-react-app\createReactApp.js:334:10) at C:\Users\vanishree.r\AppData\Roaming\npm-cache_npx\1628\node_modules\create-react-app\createReactApp.js:461:16 at processTicksAndRejections (internal/process/task_queues.js:95:5) { errno: -4094, code: 'UNKNOWN', syscall: 'spawn' }

Deleting generated file... package.json Deleting sample-react-app/ from C:\Users\vanishree.r Done.

gaearon commented 2 years ago

Please file an issue in https://github.com/facebook/create-react-app instead.

That said this looks like calling npm fails on your system. Try again or try reinstalling Node.