Some basic things we need to do before installing React

Shyama Patro
May 19, 2022

npx create-react-app <folder name>

using that command we can easily create react app

Note: we will get some errors if we are using the latest version of the react for that,

The error we get is This version of tar is no longer supported, and will not receive security updates. Please upgrade asap.

You are running `create-react-app` 5.0.0, which is behind the latest release (5.0.1).

We no longer support the 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/

to solve this problem by using command which is given below

npx create-react-app@5.0.1 my-app

--

--

Shyama Patro
0 Followers

{ The Tech Enthusiast, Programmer and Designer and Most important Always be a Learner }