Global CRA uninstall: npm uninstall -g create-react-app
See original GitHub issueSince create-react-app 3.3.0 it’s not longer recommended to use a global installation of CRA.
However, after following the recommended way, uninstalling CRA globally and using npm,I ran into the following problem for my new React project:
A template was not provided. This is likely because you're using an outdated version of create-react-app.
It seems like CRA wasn’t properly uninstalled. I had to do the following:
After uninstalling it with npm uninstall -g create-react-app
, check whether you still have it “installed” with which create-react-app
on your command line. If it returns something (e.g. /usr/local/bin/create-react-app), then do a rm -rf /usr/local/bin/create-react-app
to delete manually.
Afterward, I was able to use npx create-react-app my-app
with the latest version of CRA where I would have the default template for the src/ folder.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:45
- Comments:12
Top GitHub Comments
npx create-react-app@latest your-project-name --use-npm
Thank you! I was starting to go crazy haha