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

Viewed 1757

PS E:\New folder> npx create-react-app my-app Need to install the following packages: create-react-app Ok to proceed? (y) y

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/[enter image description here]1

3 Answers

Step-1 npm uninstall -g create-react-app

Step-2 npm install -g create-react-app

It works for me if it still not works for you try npx clear-npx-cache after global uninstallation.

When I run npx clear-npx-cache i get:

TypeError: fs_1.rmSync is not a function

Related