0
votes

While creating the react-app by = " npm create-react-app " src and public folder are not created

I tried:

  1. npx craete-raect-app

  2. npm rm -g create-react-app, npm install -g create-react-app, npx create-react-app .

  3. npx --ignore-existing create-react-app Your-AppName

i tried these all but failed to create the src folder.

2
Does any one giving error? npx create-react-app - Shubham Verma
Does anything get created at all? - Shmili Breuer
no ..by writing these all command src folder is not created and not showing any error - Navreet Kaur
Hi @NavreetKaur I am facing the same issue. I have uninstalled node and reinstalled it again twice but still no avail. Same with create-react-app. I could not find any solution here or anywhere else. How did you solve this issue? - Abhishek Ghadge

2 Answers

1
votes

Try to run this command npx craete-raect-app app-name

0
votes

First of all check whether you have node installed on your machine: Run this command:

node -v

It will show your node version if installed.

Next step you are not even creating an app. Give it a name app-name

npx create-react-app  app-name

This will create your app with src and public folder inside it. Go to your app by:

cd app-name
npm start