question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Global CRA uninstall: npm uninstall -g create-react-app

See original GitHub issue

Since 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:closed
  • Created 4 years ago
  • Reactions:45
  • Comments:12

github_iconTop GitHub Comments

1reaction
brothergiezcommented, Dec 18, 2019

hmmm in my machine it’s worked with yarn, but not with npx.

So I tried this with npx and it’s worked: npx create-react-app@3.3.0 your-project-name or npx create-react-app@latest your-project-name

node : 10.16.3 npx : 6.9.0 npm : 6.9.0

npx create-react-app@latest your-project-name --use-npm

0reactions
mryechkincommented, Dec 19, 2019

Thank you! I was starting to go crazy haha

Read more comments on GitHub >

github_iconTop Results From Across the Web

Issues with uninstalling create-react-app
Windows solution: 1- uninstall globally npm uninstall -g create-react-app. 2- ...
Read more >
Uninstalling packages and dependencies
To uninstall an unscoped global package, on the command line, use the uninstall command with the -g flag. Include the scope if the...
Read more >
How to Delete React App
Deletering React app is a straightforward process. When you create a new React project, all the project files are stored inside a project ......
Read more >
Create React App
If you've previously installed create-react-app globally via npm install -g create-react-app , we recommend you uninstall the package using npm uninstall -g ......
Read more >
Getting Started | Create React App
If you've previously installed create-react-app globally via npm install -g create-react-app , we recommend you uninstall the package using ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found