Skip to content

Commit 26febc5

Browse files
RusinovAntoniansu
authored andcommitted
Add instructions on alternative methods of app creation (#4638)
1 parent e1ee803 commit 26febc5

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

README.md

+17-1
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,30 @@ Just create a project, and you’re good to go.
3636

3737
**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.
3838

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
4042

4143
```sh
4244
npx create-react-app my-app
4345
```
4446

4547
*([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))*
4648

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+
4763
It will create a directory called `my-app` inside the current folder.<br>
4864
Inside that directory, it will generate the initial project structure and install the transitive dependencies:
4965

0 commit comments

Comments
 (0)