From ee79c4c10db16402b5a4109203f18f5f71d9d20e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Antonio=20Chio?= Date: Sun, 11 Oct 2020 19:07:00 -0500 Subject: [PATCH 1/2] Add docs about the use-npm flag in create next app --- docs/api-reference/create-next-app.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/api-reference/create-next-app.md b/docs/api-reference/create-next-app.md index f5dead47ab75b98..431f65f94bf8a44 100644 --- a/docs/api-reference/create-next-app.md +++ b/docs/api-reference/create-next-app.md @@ -18,6 +18,7 @@ yarn create next-app - **-e, --example [name]|[github-url]** - An example to bootstrap the app with. You can use an example name from the [Next.js repo](https://github.com/vercel/next.js/tree/master/examples) or a GitHub URL. The URL can use any branch and/or subdirectory. - **--example-path [path-to-example]** - In a rare case, your GitHub URL might contain a branch name with a slash (e.g. bug/fix-1) and the path to the example (e.g. foo/bar). In this case, you must specify the path to the example separately: `--example-path foo/bar` +- **--use-npm** - Explicitly tell the CLI to bootstrap the app using NPM. By default, the CLI will detect if Yarn is installed and use it if it's available. ### Why use Create Next App? From 2ff9a6b3f77a708bd9514a4c503a98295fbcba92 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Antonio=20Chio?= Date: Mon, 12 Oct 2020 12:25:50 -0500 Subject: [PATCH 2/2] Update docs/api-reference/create-next-app.md Co-authored-by: Luis Alvarez D. --- docs/api-reference/create-next-app.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/api-reference/create-next-app.md b/docs/api-reference/create-next-app.md index 431f65f94bf8a44..1b96f94179d2016 100644 --- a/docs/api-reference/create-next-app.md +++ b/docs/api-reference/create-next-app.md @@ -18,7 +18,7 @@ yarn create next-app - **-e, --example [name]|[github-url]** - An example to bootstrap the app with. You can use an example name from the [Next.js repo](https://github.com/vercel/next.js/tree/master/examples) or a GitHub URL. The URL can use any branch and/or subdirectory. - **--example-path [path-to-example]** - In a rare case, your GitHub URL might contain a branch name with a slash (e.g. bug/fix-1) and the path to the example (e.g. foo/bar). In this case, you must specify the path to the example separately: `--example-path foo/bar` -- **--use-npm** - Explicitly tell the CLI to bootstrap the app using NPM. By default, the CLI will detect if Yarn is installed and use it if it's available. +- **--use-npm** - Explicitly tell the CLI to bootstrap the app using npm. Yarn will be used by default if it's installed ### Why use Create Next App?