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

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

Also have a look at this answer on clearing the cache.

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

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

Leave a Comment