Home > Net >  Why create-react-app don't create the body of the app?
Why create-react-app don't create the body of the app?

Time:06-15

I wanted to create a react application using npx create-react-app my-app, it runs and create a folder with node_modules, package.json and yarn.lock without the src and the public folder and it returns a template was not provided, this is likely you're using an outdated version of create-react-app like y'all seeing in the screenshots.

node v16.15.1, npm v7.24.2

this this commands i used

and this is the final result

CodePudding user response:

Have you tried the command that is written in the last line: npm uninstall -g create-react-app? And then try again with npx create-react-app my-app

CodePudding user response:

I finally figured out the solution for this. I just needed to delete create-react-app folder in the node_modules because the uninstall command didn't work and run this command npm install create-react-app@latest then the problem is solved.

  • Related