From bedd0b2bc58eb34d2c70eef0ac6835da356dea50 Mon Sep 17 00:00:00 2001 From: Ian Schmitz Date: Tue, 8 Jan 2019 20:09:50 -0800 Subject: [PATCH 1/2] Add note for global install of CLI Closes #6140. --- docusaurus/docs/getting-started.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docusaurus/docs/getting-started.md b/docusaurus/docs/getting-started.md index c7d5eb50514..f01684b3772 100644 --- a/docusaurus/docs/getting-started.md +++ b/docusaurus/docs/getting-started.md @@ -14,6 +14,8 @@ cd my-app npm start ``` +> If you've previously installed `create-react-app` globally via `npm install -g create-react-app`, we recommend you uninstall the package using `npm uninstall -g create-react-app` to ensure that `npx` always grabs the latest version. + _([npx](https://medium.com/@maybekatz/introducing-npx-an-npm-package-runner-55f7d4bd282b) comes with npm 5.2+ and higher, see [instructions for older npm versions](https://gist.github.com/gaearon/4064d3c23a77c74a3614c498a8bb1c5f))_ Then open [http://localhost:3000/](http://localhost:3000/) to see your app. From d8a479789ac51233851f43f370513b69967809f3 Mon Sep 17 00:00:00 2001 From: Ian Schmitz Date: Wed, 9 Jan 2019 10:36:51 -0800 Subject: [PATCH 2/2] Update getting-started.md --- docusaurus/docs/getting-started.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docusaurus/docs/getting-started.md b/docusaurus/docs/getting-started.md index f01684b3772..a77beb5c1b0 100644 --- a/docusaurus/docs/getting-started.md +++ b/docusaurus/docs/getting-started.md @@ -14,7 +14,7 @@ cd my-app npm start ``` -> If you've previously installed `create-react-app` globally via `npm install -g create-react-app`, we recommend you uninstall the package using `npm uninstall -g create-react-app` to ensure that `npx` always grabs the latest version. +> If you've previously installed `create-react-app` globally via `npm install -g create-react-app`, we recommend you uninstall the package using `npm uninstall -g create-react-app` to ensure that `npx` always uses the latest version. _([npx](https://medium.com/@maybekatz/introducing-npx-an-npm-package-runner-55f7d4bd282b) comes with npm 5.2+ and higher, see [instructions for older npm versions](https://gist.github.com/gaearon/4064d3c23a77c74a3614c498a8bb1c5f))_