Skip to content

Commit 0768a62

Browse files
januswelradko93
authored andcommitted
Make note on the legacy CLI stand out (#103)
1 parent fe7597c commit 0768a62

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,23 +25,23 @@
2525

2626
## :arrow_forward: Usage
2727

28-
> `[email protected]` or higher
28+
### Note on the legacy CLI
29+
There seems to be quite some confusion about the legacy CLI. This template only works with the new CLI. Make sure you have uninstalled the legacy `react-native-cli` first (`npm uninstall -g react-native-cli`), for the above command to work. If you wish to not use `npx`, you can also install the new CLI globally (`npm i -g @react-native-community/cli` or `yarn global add @react-native-community/cli`).
30+
31+
Further information can be found here: https://github.com/react-native-community/cli#about
32+
33+
### `[email protected]` or higher
2934

3035
```sh
3136
npx react-native init MyApp --template react-native-template-typescript
3237
```
3338

34-
39+
3540

3641
```sh
3742
npx react-native init MyApp --template [email protected]
3843
```
3944

40-
### Note on the legacy CLI
41-
There seems to be quite some confusion about the legacy CLI. This template only works with the new CLI. Make sure you have uninstalled the legacy `react-native-cli` first (`npm uninstall -g react-native-cli`), for the above command to work. If you wish to not use `npx`, you can also install the new CLI globally (`npm i -g @react-native-community/cli` or `yarn global add @react-native-community/cli`).
42-
43-
Further information can be found here: https://github.com/react-native-community/cli#about
44-
4545
## :computer: Contributing
4646

4747
Contributions are very welcome. Please check out the [contributing document](CONTRIBUTING.md).

0 commit comments

Comments
 (0)