DEV Community

Kapil Gorve
Kapil Gorve

Posted on • Originally published at jskap.com on

Create React App Error - Template not provided

''Photo from CRA Docs

Create React App Error

Error Message - 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.

Solution

New versions of Create React App doesn't support global installs. Remove it globally.Try npm uninstall -g create-react-app. Then try again. Didn't work for me. Even after removing create-react-app globally. If your system has any projects using CRA in parent directory npm will pick up that version.

Try npx --ignore-existing create-react-app my-app. This will ignore any installs you have in your system.

Final Solution

I had to manually remove CRA from global installs.Windows path - C:\Users\your_username\AppData\Roaming\npm .Delete file named create-react-app and create-react-app.cmd.On Unix systems it should be located in - /usr/local/bin. Don' forget to remove executable file. For windows it was .cmd file.

CRA - create-react-app

This post was originally published at https://www.jskap.com/notes/create-react-app-template-not-provided/

šŸ‘‹ Hi! Iā€™m Kapil. I am always chatty about building things, sharing my learnings, freelancing. Come say hi to me at https://twitter.com/kapilgorve

Top comments (0)