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
Expected an assignment or function call and instead saw an expression in React
How to fix npm ERR! Missing script: "start"
Handle double click events in React
node: --openssl-legacy-provider is not allowed in NODE_OPTIONS
Get the current route using React Router
The useState set method does not reflect a change immediately
How to create a scroll to top button in React
Programmatically update query params in React Router
Why useEffect is running twice in React?
Explore All Blogs