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 able to use create-react-app 4.0.3

See original GitHub issue

From a node:17-alpine Docker image:

/ # npx create-react-app@4.0.3 test
Need to install the following packages:
  create-react-app@4.0.3
Ok to proceed? (y) y
npm WARN deprecated tar@2.2.2: This version of tar is no longer supported, and will not receive security updates. Please upgrade asap.

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

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 notice
npm notice New minor version of npm available! 8.5.5 -> 8.6.0
npm notice Changelog: https://github.com/npm/cli/releases/tag/v8.6.0
npm notice Run npm install -g npm@8.6.0 to update!
npm notice

It would be very handy to be able to use 4.0.3 while 5.0.X issues are worked out.

Issue Analytics

  • State:open
  • Created a year ago
  • Reactions:21
  • Comments:7

github_iconTop GitHub Comments

6reactions
testacodecommented, Apr 23, 2022

I had the same issue, the solution that worked for me is to clear the cache

npm cache clean --force  

but wait for it to clear, the clearing process will not show you a loading bar of cleaning, so you may think it is not responding and ( ctr c ) the process, I was doing that, Then try again

npx create-react-app projectName  

If still not working try

npx clear-npx-cache

then

npm cache clean --force  

This just installs the latest version which comes with latest react version (18), not suitable for me. I need version 17.

4reactions
dsv-sergeycommented, Apr 27, 2022

I had the same issue, the solution that worked for me is to clear the cache

npm cache clean --force  

but wait for it to clear, the clearing process will not show you a loading bar of cleaning, so you may think it is not responding and ( ctr c ) the process, I was doing that, Then try again

npx create-react-app projectName  

If still not working try

npx clear-npx-cache

then

npm cache clean --force  

This just installs the latest version which comes with latest react version (18), not suitable for me. I need version 17.

We created a custom template that needs react version 17, but CRA does not provide mechanisms to fix react and react-dom versions

Read more comments on GitHub >

github_iconTop Results From Across the Web

"You are running create-react-app 4.0.3 which is behind the ...
This could be a local caching issue. Try the command npm cache clean --force using administrator mode in your terminal and then try...
Read more >
(Solved) You are running `create-react-app` 4.0.3 ... - YouTube
this video shows you two ways on how to solve "You are running ` create - react - app ` 4.0.3, which is...
Read more >
you are running create react app which is behind latest
To solve the React.js error "You are running create-react-app 4.0.3, which is behind the latest release (5.0.0)", run the npx clear-npx-cache command and ......
Read more >
Create React App cannot create new applications: No longer ...
Create React App cannot create new applications: No longer support global installation · When you try to install CRA from npx as shown...
Read more >
Fixing an error You are running create-react-app 4.0.3, which ...
React application is not created, instead, it throws an error. There are two versions with local create-react-app installation and npx create-react ...
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