I am trying to create a react app. When I run the npx create-react-app myapp
command, this is what happens. I know I can ignore the vulnerabilities but the src and public folders are missing in the app folder.
How can I get the missing folders?
Asked
Active
Viewed 425 times
0

kandy kane
- 75
- 1
- 8
2 Answers
0
follow this steps
- remove create-react-app
npm uninstall -g create-react-app
2)update npm npx using the following commands.
npm update npx
and run the final step
npx create-react-app my-app

Kanti vekariya
- 667
- 3
- 13
-
I tried this multiple times, and still same outcome and the folders are still missing – kandy kane Sep 20 '21 at 05:06
-
try this one `npm install -g create-react-app` and then `npx create-react-app my-app` make sure you remove all `npm cache` – Kanti vekariya Sep 20 '21 at 05:17
-
I tried this too.. no difference – kandy kane Sep 20 '21 at 06:19
0
Run these commands as follow :
npm i -g npm
npm uninstall -g create-react-app
npm updates npx
npx create-react-app app-name

Sandile Ndimande
- 1
- 1