Reputation: 15
While creating the react-app by = " npm create-react-app " src and public folder are not created
I tried:
npx craete-raect-app
npm rm -g create-react-app, npm install -g create-react-app, npx create-react-app .
npx --ignore-existing create-react-app Your-AppName
i tried these all but failed to create the src folder.
Upvotes: 0
Views: 285
Reputation: 968
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
Upvotes: 0