B
B
Black_Fire2020-12-05 16:26:28
React
Black_Fire, 2020-12-05 16:26:28

How to create react apps now?

I create an application with a command, npx create-react-app my-appbut it gives an error:

You are running `create-react-app`4.0.0, which is behind the latest release (4.0.1). 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

But I never installed it globally. Even after executing these commands, still the same error.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Z
zlodiak, 2020-12-26
@zlodiak

npm uninstall -g create-react-app
npm install -g create-react-app
npx create-react-app my-app

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question