facebook / create-react-app

Set up a modern web app by running one command.
https://create-react-app.dev
MIT License
102.61k stars 26.79k forks source link

create-react-app error #12257

Open suleymanse opened 2 years ago

suleymanse commented 2 years ago

hi everyone when installing create-react-app i come upon an error this is the code

C:\WINDOWS\system32>npx create-react-app my-app Need to install the following packages: create-react-app Ok to proceed? (y) y 'create-react-app' is not recognized as an internal or external command, operable program or batch file.

C:\WINDOWS\system32>npm start npm ERR! code ENOENT npm ERR! syscall open npm ERR! path C:\WINDOWS\system32/package.json npm ERR! errno -4058 npm ERR! enoent ENOENT: no such file or directory, open 'C:\WINDOWS\system32\package.json' npm ERR! enoent This is related to npm not being able to find a file. npm ERR! enoent

npm ERR! A complete log of this run can be found in npm ERR! C:\Users\Ela EKİZ\AppData\Local\npm-cache_logs\2022-04-07T14_55_36_160Z-debug-0.log

BraianS commented 3 months ago

Good morning, this command to create a new application

npx create-react-app my-app && cd my-app && npm start