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.

Not working after update

See original GitHub issue

Hi, I get this error whenever I run the command $ npx create-react-app new-app in my terminal, and I follow the instructions to uninstall via npm uninstall -g create-react-app and then try to make a new react app but it simply keeps giving me the same error.

Is this happening for anyone else??

You are running `create-react-app` 4.0.1, which is behind the latest release (4.0.2).

We no longer support global installation of Create React App.

Please remove any global installs with one of the following commands:
- npm uninstall -g create-react-app
- yarn global remove create-react-app

The latest instructions for creating a new app can be found here:
https://create-react-app.dev/docs/getting-started/

npm ERR! code 1
npm ERR! path /home/dvill/programming/my apps/feeding-miami
npm ERR! command failed
npm ERR! command sh -c create-react-app "new-app"

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/dvill/.npm/_logs/2021-02-03T19_35_15_972Z-debug.log

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:9
  • Comments:8

github_iconTop GitHub Comments

15reactions
TaylorDarneillecommented, Feb 3, 2021

While not super sensible, these are the two different fixes we quickly discovered in the middle of teaching a react lesson in an SE bootcamp today (if npm uninstall -g create-react-app doesn’t work):

  1. Literally do the opposite of what the error message says: run npm -g create-react-app and then you can rn npx create-react-app sitename
  2. In a slightly less confusing fix, this also seems to work: npm uninstall -g create-react-app && npm i -g npm@latest && sudo npm cache clean -f
2reactions
peterbecommented, Feb 4, 2021

I still don’t want to install create-react-app with yarn or with npm. I encounter the same error with the wonderful npx.

Steps to reproduce

cd /tmp
npx create-react-app cra

(same error as mentioned above)

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshoot problems updating Windows - Microsoft Support
Then, select Start > Power , and select either Update and restart or Update and shut down.
Read more >
How to Fix Problems Caused by Windows Updates - Lifewire
Restart your computer. Some problems seen after Windows update installations can be corrected with a simple reboot.
Read more >
Computer Won't Start after Windows Update | 5 Quick Fixes
Windows Update and Arising Issues · Method 1: Perform System Restore in Safe Mode · Method 2: Run System File Checker Command Line...
Read more >
Windows 10 not working after new update - here's how to fix it
If you are experiencing the network issues after the update then there are a few things you can try. Open your settings and...
Read more >
Windows Update Not Working, Stuck at Checking for updates ...
Whenever you're having problems with Windows Update, the easiest method you can try is to run the built-in troubleshooter. Running Windows ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

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