# You are running create-react-app 4.0.3, which is behind the latest release (5.0.0) – How to fix it?

When you use create-react-app version 4.0.3 and run the “create-react-app” command in your project, you will get the error message: “You are running create-react-app 4.0.3, which is behind the latest release (5.0.0)”. This article will show you how to use the “npx clear-npx-cache” command to solve this problem.

## Why do we get this error message?

This error message tells us that the current latest version of the “create-react-app” is “5.0.0”, and you are using a lower version of it – In the content of this article refers to the specific version ‘4.0.3’.

## How to fix the error “You are running create-react-app 4.0.3, which is behind the latest release (5.0.0)”?

To get around this problem, follow the instructions below:

In your project, open a terminal window and execute the command below:

npx clear-npx-cache

After successfully executing the above command, you can start creating a new react app by running the creation command:

:: With the React application
npx create-react-app demo-react-application

:: With the React-TypeScript application
npx create-react-app demo-react-application --template typescript


You can specify for the install command to install the most recent version of create-react-app if the error persists.

:: With the React application
npx [email protected] demo-react-application

:: With the React-TypeScript application
npx [email protected] demo-react-application --template typescript

Moreover, you can likewise instantiate new project by customizing the application creation command with a particular create-react-app’s version:

:: With the React application
npx [email protected] demo-react-application

:: With the React-TypeScript application
npx [email protected] demo-react-application --template typescript

In case you tried all the above methods but didn’t help you to get rid of the error, you can try to run the command below to remove the global installation of “create-react-app” in your project:

:: When using npm
npm uninstall -g create-react-app

:: When using yarn
yarn global remove create-react-app

Then you can try to re-execute the commands as mentioned above sequentially.

One more tip for you to get around this issue: Sometimes, it would be helpful if you execute the application creation.

:: With the React application
npx [email protected] demo-react-application --use-npm

:: With the React-TypeScript application
npx [email protected] demo-react-application --template typescript --use-npm

## Summary

Finally, you have been given detailed instructions on fixing the error: “You are running create-react-app 4.0.3, which is behind the latest release (5.0.0)“. You can execute the command “npx clear-npx-cache” and then re-run the create command. That’s the end of this article. Hopefully, the information we provide is helpful to you.

Maybe you are interested: