You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+17-1
Original file line number
Diff line number
Diff line change
@@ -36,14 +36,30 @@ Just create a project, and you’re good to go.
36
36
37
37
**You’ll need to have Node >= 6 on your local development machine** (but it’s not required on the server). You can use [nvm](https://github.com/creationix/nvm#installation) (macOS/Linux) or [nvm-windows](https://github.com/coreybutler/nvm-windows#node-version-manager-nvm-for-windows) to easily switch Node versions between different projects.
38
38
39
-
To create a new app, run a single command:
39
+
To create a new app, you may choose one of the following methods:
40
+
41
+
### npx
40
42
41
43
```sh
42
44
npx create-react-app my-app
43
45
```
44
46
45
47
*([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))*
46
48
49
+
### npm
50
+
51
+
```sh
52
+
npm init react-app my-app
53
+
```
54
+
*`npm init <initializer>` is available in npm 6+*
55
+
56
+
### Yarn
57
+
58
+
```sh
59
+
yarn create react-app my-app
60
+
```
61
+
*`yarn create` is available in Yarn 0.25+*
62
+
47
63
It will create a directory called `my-app` inside the current folder.<br>
48
64
Inside that directory, it will generate the initial project structure and install the transitive dependencies:
0 commit comments