public, src,and scripts folder not created while using create-react-app

Ankit Sinha picture Ankit Sinha · Dec 10, 2019 · Viewed 10.9k times · Source

I am trying to create a new project using create-react-app using the command given on the docs i.e npx create-react-app my-app but it doesn't contain folders like public src and script.

Answer

Osama Aftab picture Osama Aftab · Dec 10, 2019

Try with these steps :

  1. npm rm -g create-react-app
  2. npm install -g create-react-app
  3. npx create-react-app my-app

Source