Skip to content

Commit 2414308

Browse files
adeelibrmrmckeb
authored andcommitted
Document --use-npm (facebook#7279)
1 parent 2c6dd45 commit 2414308

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

docusaurus/docs/getting-started.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,14 @@ _`yarn create` is available in Yarn 0.25+_
6666

6767
Follow our [Adding TypeScript](adding-typescript.md) documentation to create a TypeScript app.
6868

69+
### Selecting a package manager
70+
71+
When you create a new app, the CLI will use [Yarn](https://yarnpkg.com/) to install dependencies (when available). If you have Yarn installed, but would prefer to use npm, you can append --use-npm to the creation command. For example:
72+
73+
```sh
74+
npx create-react-app my-app --use-npm
75+
```
76+
6977
## Output
7078

7179
Running any of these commands 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:

0 commit comments

Comments
 (0)