Prior to using `create-react-app`, you must install `Node.js` and `npm` (Node Package Manager) on your computer. You can download `Node.js` and `npm` here – https://nodejs.org/en/download/
After the successfull installation of `Node.js` and `npm`, you can now install the `create-react-app` command line tool globally on your computer by doing this:
1. Open your terminal or command prompt.
2. Type `npm install -g create-react-app` and hit enter. The -g flag is used to signify that the package is to be installed globally.
After successfully installing the `create-react-app` tool, you can then create a React application by following these steps:
1. In your terminal, navigate to the directory where you want to create your new app.
2. Type `npx create-react-app my-app`, replacing “my-app” with the name of your application, and hit enter.
3. Once the installation process is complete, navigate to your new app directory by typing `cd my-app` and hitting enter.
4. Start your application by typing `npm start` and hitting enter. Your app should now be running on localhost:3000.
Your application’s source code is editable inside the `my-app` folder that was created and your main app component is defined in `src/App.js`.
If you’d like to specify a version, you can by typing `npx create-react-app@x.y.z my-app` and replacing “x.y.z” with the `create-react-app` version you want to use.