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

AWS Q Developer image

Your AI Code Assistant

Automate your code reviews. Catch bugs before your coworkers. Fix security issues in your code. Built to handle large projects, Amazon Q Developer works alongside you from idea to production code.

Get started free in your IDE

Top comments (0)

nextjs tutorial video

Youtube Tutorial Series šŸ“ŗ

So you built a Next.js app, but you need a clear view of the entire operation flow to be able to identify performance bottlenecks before you launch. But how do you get started? Get the essentials on tracing for Next.js from @nikolovlazar in this video series šŸ‘€

Watch the Youtube series

šŸ‘‹ Kindness is contagious

Please leave a ā¤ļø or a friendly comment on this post if you found it helpful!

Okay