can't create new react app
See original GitHub issueDescribe the bug
(PS C:\Users..\OneDrive\Skrivbord\fre> npx create-react-app ecom
Creating` a new React app in C:\Users..\OneDrive\Skrivbord\fre\ecom.
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:412:11) at Object.spawn (node:child_process:698:9) at spawn (C:\Users\baraa\AppData\Local\npm-cache_npx\c67e74de0542c87c\node_modules\cross-spawn\index.js:12:24) at C:\Users\baraa\AppData\Local\npm-cache_npx\c67e74de0542c87c\node_modules\create-react-app\createReactApp.js:390:19 at new Promise (<anonymous>) at install (C:\Users\baraa\AppData\Local\npm-cache_npx\c67e74de0542c87c\node_modules\create-react-app\createReactApp.js:341:10) at C:\Users\baraa\AppData\Local\npm-cache_npx\c67e74de0542c87c\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 ecom/ from C:\Users\baraa\OneDrive\Skrivbord\fre Done. PS C:\Users\baraa\OneDrive\Skrivbord\fre> .)
Did you try recovering your dependencies?
(
- npm install -g create-react-app
- npm cache clean --force
- npm install npm@latest
)
Which terms did you search for in User Guide?
(Write your answer here if relevant.)
Environment
(Environment Info:
current version of create-react-app: 5.0.0 running from C:\Users\baraa\AppData\Local\npm-cache_npx\c67e74de0542c87c\node_modules\create-react-app
System: OS: Windows 10 10.0.22000 CPU: (8) x64 Intel® Core™ i7-1065G7 CPU @ 1.30GHz Binaries: Node: 16.13.1 npm: 8.3.0
npmPackages: react: Not Found react-dom: Not Found react-scripts: Not Found npmGlobalPackages: create-react-app: Not Found.)
Steps to reproduce
(Write your steps here:)
Expected behavior
(Write what you thought would happen.)
Actual behavior
()
Reproducible demo
(Paste the link to an example project and exact instructions to reproduce the issue.)
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:5
Top GitHub Comments
I got this strange message when running:
System:
Binaries:
Duplicate of https://github.com/facebook/create-react-app/issues/10670