From 489c172489141236ffed7c9849d8dc46bbdfbf51 Mon Sep 17 00:00:00 2001 From: Jerome de Leon <32805276+JeromeDeLeon@users.noreply.github.com> Date: Tue, 10 Dec 2019 11:58:46 +0800 Subject: [PATCH 1/2] Add package-runner note to readme --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index caa74c74733..05915a74ca1 100644 --- a/README.md +++ b/README.md @@ -16,6 +16,7 @@ npx create-react-app my-app 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 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))_ @@ -61,7 +62,7 @@ _`npm init ` is available in npm 6+_ yarn create react-app my-app ``` -_`yarn create` is available in Yarn 0.25+_ +_`yarn create ` is available in Yarn 0.25+_ It will create a directory called `my-app` inside the current folder.
Inside that directory, it will generate the initial project structure and install the transitive dependencies: From 2e8f1c98ae852bfbeaa1dbb58a9936419d9c1bd9 Mon Sep 17 00:00:00 2001 From: Jerome De Leon <32805276+JeromeDeLeon@users.noreply.github.com> Date: Wed, 11 Dec 2019 11:33:32 +0800 Subject: [PATCH 2/2] Add link to `yarn create` --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 05915a74ca1..4cb6692bad9 100644 --- a/README.md +++ b/README.md @@ -62,7 +62,7 @@ _`npm init ` is available in npm 6+_ yarn create react-app my-app ``` -_`yarn create ` is available in Yarn 0.25+_ +_[`yarn create `](https://yarnpkg.com/lang/en/docs/cli/create/) is available in Yarn 0.25+_ It will create a directory called `my-app` inside the current folder.
Inside that directory, it will generate the initial project structure and install the transitive dependencies: