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.

Create-react-app stuck on v4.0.3, cannot create a new app

See original GitHub issue

Describe the bug

When attempting to use npx create-react-app <app-name>, I get the following error:

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

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

What I have tried to fix it:

  1. Run npm uninstall -g create-react-app to uninstall any global versions of create-react-app
  2. Run npm i -g npm@latest to update npm
  3. Run npm uninstall -g create-react-app && sudo npm cache clean -f to try and clean any cached information regarding create-react-app.

Below is a gif showing the issue in real time.

Which terms did you search for in User Guide?

Latest release

Environment

Unfortunately, the npx create-react-app info command ends up with the same error.

I am currently on Mac v12.0.1. Please request more info if needed.

Steps to reproduce

  1. Attempt to run npx create-react-app <app-name-here>

Expected behavior

A React app is created.

Actual behavior

create-react-app errors due to incorrect version.

image

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:22
  • Comments:24 (1 by maintainers)

github_iconTop GitHub Comments

24reactions
Newbie012commented, Dec 14, 2021

run

npx create-react-app@5.0.0 app-name
9reactions
jestricklercommented, Dec 15, 2021

That’s the problem. npx is NOT pulling the latest version. The workaround npx create-react-app@5.0.0 app-name will let you create a react app. But if you go back to the standard npx create-react-app my-app it goes back to this broken looping behavior where it is globally installing 4.0.3, then telling you to uninstall it… rinse… repeat

Read more comments on GitHub >

github_iconTop Results From Across the Web

create-react-app is not working since version 4.0.1
So to fix the error you're getting, uninstall create-react-app globally, update npm, clear the cache, and retry creating the app. Run this in ......
Read more >
create-react-app not working ⚠️ error solved - YouTube
In this video, we will solve the error in reactjs that We no longer support global installation of Create React App. ✔️ create...
Read more >
Create a New React App
Create React App is a comfortable environment for learning React, and is the best way to start building a new single-page application in...
Read more >
npx create-react-app stuck Code Example
npm uninstall -g create-react-app npm cache clean --force npm install -g create-react-app.
Read more >
React app stuck on Starting the development server
I am facing the same issue, I am using Apple MacBook Pro With M1 chip. When I am starting react development server using...
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