We no longer support global installation of Create React App
The error: “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” occurs when you have an older version of CRA installed on your computer. To solve the error please remove any global installs and install the latest version of CRA.
Use the below command to remove global installation for CRA.
# npm command
npm uninstall -g create-react-app
# yarn command
yarn global remove create-react-app
Even if you have uninstalled CRA, there is a chance to get the same error because npm keeps a cache of the Create React App that you’ve installed previously. So you want to clear the cache of previously installed.
npx clear-npx-cache
If you are using npm init
, then you can clear the npm cache with the below command.
npm cache clean --force
After clearing the cache you can go for installation of a new create-react-app to create a new react application.
npx create-react-app my-app
You can find new installed CRA package and its version by running the below command.
npm list -g
This command will list all npm packages installed globally.
Conclusion
To solve the error “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 and install the latest version of CRA.
On datainfinities.com, Read articles all around JavaScript, React, Node.js, PHP, Laravel, and Shopify.
Related Blogs
Why useEffect is running twice in React?
Warning: The tag is unrecognized in this browser
ERESOLVE unable to resolve dependency tree error when installing npm packages
React objects are not valid as a react child
Find greatest common divisor (GCD) in JavaScript
The style prop expects a mapping from style properties to values, not a string
Unexpected default export of anonymous function
How to fix npm ERR! Missing script: "start"
Using Redux Toolkit with React
Explore All Blogs