"You are running create-react-app 4.0.3 which is behind the latest release (5.0.0)" [duplicate]

Try running this:

npx clear-npx-cache

It's fixed. I do npx [email protected] my-app.

Reference: Error while creating new React app ("You are running `create-react-app` 4.0.3, which is behind the latest release (5.0.0)")


npx clear-npx-cache worked for me.

Try npx clear-npx-cache to clear your npx cache and then running the npx create-react-app your-app.

Additionally, it might be worth trying to force the latest version with:

npx create-react-app@latest my-app --use-npm