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.

We no longer support global installation of Create React App

See original GitHub issue

Describe the bug

I’m not comfortable with all of the critical bugs in the recently released CRA 5.0.0, so want to use the most recent reliable v4 instead, 4.0.3. Can’t use npx create-react-app any more due to following error.

user:~/my-dir$ npx create-react-app@4.0.3 my-new-app

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

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

npm version: 8.1.0

Steps to reproduce

Try creating a new react app using CRA.

  • npx create-react-app@4.0.3 your-new-app
  • Get above error, app not created.
  • Try removing global install as per the given instructions with npm uninstall -g create-react-app
  • Has no effect.

Expected behavior

Should create a new CRA app. Should not care about latest release.

Actual behavior

Error.

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:25
  • Comments:29

github_iconTop GitHub Comments

82reactions
theunderdogdevcommented, Feb 4, 2022

It’s not an error it’s just a warning. Facebook suggests to use latest version of CRA for creating apps. Use this instead

npx create-react-app <your-app-name>

For more info refer to this stack overflow question

69reactions
andy5090commented, Feb 5, 2022

It’s not an error it’s just a warning. Facebook suggests to use latest version of CRA for creating apps. Use this instead

npx create-react-app <your-app-name>

For more info refer to this stack overflow question

You mean this one

npx create-react-app@latest <your-project-name>

I had a same problem and this has solved the problem. but should be working without designating version or latest in the future I hope.

Read more comments on GitHub >

github_iconTop Results From Across the Web

create-react-app is not working since version 4.0.1
We no longer support global installation of Create React App. You must uninstall create-react-app with npm uninstall -g create-react-app . Then ...
Read more >
Create React App cannot create new applications: No longer ...
Learn how to resolve We no longer support global installation of Create React App error.
Read more >
We no longer support global installation of Create React App
Whenever i was creating react app using $ npx create-react-app app-name Enter fullscreen... Tagged with react, javascript, programming, ...
Read more >
Can't use npx create-react-app "no longer support global ...
In my instance, I had an older version of create-react-app installed globally with yarn, and simply removing it fixed the issue.
Read more >
We no longer support global installation of Create React App
To quickly fix this issue for good, the best way is to clear the npx cache, so that in the future you can...
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