From a4b3660e53edfb25bb623678e567a653a5951feb Mon Sep 17 00:00:00 2001 From: JiDarwish <29838474+JiDarwish@users.noreply.github.com> Date: Mon, 19 Nov 2018 02:58:39 +0100 Subject: [PATCH] new way installation create-react-app using npx (#22220) --- guide/english/react/installation/index.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/guide/english/react/installation/index.md b/guide/english/react/installation/index.md index fb8100f360..b0fffa3143 100644 --- a/guide/english/react/installation/index.md +++ b/guide/english/react/installation/index.md @@ -17,6 +17,12 @@ cd my-app npm start ``` +Another option is using the package `npx` which doesn't require you to install the package `create-react-app` before using it. So you can use it without installing it which is helpful for the future not to have too many packages installed on your machine +``` +npm install -g npx +npx create-react-app my-app +``` + This will set up your development environment so that you can use the latest JavaScript features, provide a nice developer experience, and optimize your app for production. `npm start` will start up a development server which allows live reloading3.