Create amazing web applications!

A template was not provided, An outdated Package

Creating a new react application is not working properly. The reason behind this is the outdated version of npm create-react-app.

by Anthony Pillos 1 minute

tips tricks react

While doing some tutorials using react, I ran into an unusual error when creating a new react application using create-react-app command.

So today, I'll show you how to fix this kind of error which you might encounter later on while developing your react application.


Installing packages. This might take a couple of minutes.
Installing react, react-dom, and react-scripts...
..... nothing out of the ordinary here .....
✨  Done in 19.28s.

A template was not provided. This is likely because you're using an outdated version of create-react-app.
Please note that global installs of create-react-app are no longer supported.


  1. In our system verified the exact location of our create-react-app command by typing this code.

    which create-react-app

    In case it returned a path, commonly in this location


    Now, we know the exact location we can used it later on to remove all the existing file after we uninstall this command.

  2. Uninstall Create-react-app in our system.

    npm uninstall -g create-react-app
  3. Remove the file path, from step 2.

     sudo rm -rf /usr/local/bin/create-react-app
  4. Finally, use either one of the below commands:

    npx create-react-app lcp-app
    // or
    npm init react-app lcp-app
    // or
    yarn create react-app lcp-app


It should be like this after you run the npx create-react-app lcp-app or any of the command in step 4.

Wait just wait

Next Tutorial

Learn how to setup your first react application. In a few minutes. Beginners Guide to React Application


I hope you enjoy our tutorial, Let me know incase you encounter any error I would love to answer that. Don't forget to subscribe to my Youtube Channel at Let's Code Pare - Youtube Channel

Buy Me A Coffee

Share Now

Want to get more 🔥 tips like this one?

Subscribe to get notified for our new dev tutorials

Let's Code Pare
Let's Code Pare Youtube Channel