by Sai gowtham

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.

  1. First, uninstall the global version of create-react-app.
npm uninstall -g create-react-app
  1. Run the following command to delete the create-react-app manually.
rm -rf /usr/local/bin/create-react-app
  1. Now, you can use the npx create-react-app command to create a new app that includes the src folder.

Top Udemy Courses

JavaScript - The Complete Guide 2020 (Beginner + Advanced)
JavaScript - The Complete Guide 2020 (Beginner + Advanced)
26,545 students enrolled
52 hours of video content
View Course
React - The Complete Guide (incl Hooks, React Router, Redux)
React - The Complete Guide (incl Hooks, React Router, Redux)
221,520 students enrolled
44 hours of video content
View Course
Vue JS 2 - The Complete Guide (incl. Vue Router & Vuex)
Vue JS 2 - The Complete Guide (incl. Vue Router & Vuex)
114,575 students enrolled
21 hours of video content
View Course