Search code examples
javascriptreactjsdebuggingruntime-errorcreate-react-app

how to install the new version of react app 5.0.0


I've been trying to install a new app for my project. and I have an issue running it on my vs code. now, I was trying to uninstall from the global and its still output the same error. did some one ran into this error lately?

The ERROR output in the terminal: "You are running create-react-app 4.0.3, which is behind the latest release (5.0.0).

We no longer support global installation of Create React App.

Please remove any global installs with one of the following commands:

  • npm uninstall -g create-react-app
  • yarn global remove create-react-app

The latest instructions for creating a new app can be found here: https://create-react-app.dev/docs/getting-started/"

thanks ahead.


Solution

  • None of the other answers worked for me.

    In my case this command worked:

    npm init react-app my-app