From 1173ee166a2cdb636b733e41cd7e3387fe325854 Mon Sep 17 00:00:00 2001 From: Sevket Yalcin Date: Fri, 9 Nov 2018 16:25:41 +0900 Subject: [PATCH] Update CRA's installation command using npx (#21243) --- guide/english/react/your-first-app/index.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/guide/english/react/your-first-app/index.md b/guide/english/react/your-first-app/index.md index 968af4604a..d82d7ea274 100644 --- a/guide/english/react/your-first-app/index.md +++ b/guide/english/react/your-first-app/index.md @@ -6,6 +6,16 @@ title: Your first React App As specified in the previous artice (Installation), run the `Create React App` tool. After everything has finished, `cd` into the folder of your application and run `npm start`. This will start a development server and you are all set to start developing your app! + +- For node version 5.2+ +```bash +npx create-react-app my-app + +cd my-first-app +npm start +``` + +- For node versions below 5 ```bash npm install -g create-react-app create-react-app my-first-app