facebook / create-react-app

Set up a modern web app by running one command.
https://create-react-app.dev
MIT License
102.49k stars 26.77k forks source link

create-react-app #12334

Open monster5230 opened 2 years ago

monster5230 commented 2 years ago

The constant changes are getting annoying. npx create-react-app no longer works. It give instructions that it is no longer supported. It wants you to uninstall a global thing. You uninstall the global thing. It doesn't work because it asks you to reinstall the global thing. Then it leads you to a link that says you have to uninstall the global thing. Angular is looking really good right now.

PS C:\Users\User\Code\mysite\frontend> npx create-react-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.1).

We no longer support global installation of Create React App.

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

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

If you run - npm uninstall -g create-react-app, you get this:

up to date, audited 1 package in 300ms

found 0 vulnerabilities

then: if you run npx create-react-app ., you get this:

Need to install the following packages: create-react-app Ok to proceed? (y)

You click yes and rinse and repeat and repeat and repeat and repeat.............

ytkg commented 2 years ago

Try this.

$ npx clear-npx-cache
Need to install the following packages:
  clear-npx-cache
Ok to proceed? (y) y