How to solve create-react-app not creating an src folder
In this tutorial, we are going to learn how to solve the npx create-react-app which is not creating an src folder.
If you are using the npx create-react-app
command for creating a new react app you will see the following error in your terminal.
A template was not provided. This is likely because you're using an outdated version of create-react-app.
Follow the below steps to solve this error.
- First, uninstall the global version of create-react-app.
npm uninstall -g create-react-app
- Run the following command to delete the create-react-app manually.
rm -rf /usr/local/bin/create-react-app
- Now, you can use the
npx create-react-app
command to create a new app that includes the src folder.