Skip to content

Commit 412fa94

Browse files
committed
docs: include @latest for the npx commands
npx uses old versions if it was already installed before, so we need to add @latest to make it use the latest version.
1 parent b152ccf commit 412fa94

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@ If you want to create your own React Native module, scaffolding the project can
2323
To create new project, run the following:
2424

2525
```sh
26-
npx create-react-native-library react-native-awesome-module
26+
npx create-react-native-library@latest react-native-awesome-library
2727
```
2828

29-
This will ask you few questions about your project and generate a new project in a folder named `react-native-awesome-module`.
29+
This will ask you few questions about your project and generate a new project in a folder named `react-native-awesome-library`.
3030

3131
<img src="assets/create-react-native-library.gif" width="500px" height="auto">
3232

@@ -49,7 +49,7 @@ The following configuration steps are for projects not created with `create-reac
4949
To automatically configure your project to use `react-native-builder-bob`, open a Terminal and run:
5050

5151
```js
52-
npx react-native-builder-bob init
52+
npx react-native-builder-bob@latest init
5353
```
5454

5555
### Manual configuration

packages/create-react-native-library/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ CLI to scaffold React Native libraries.
55
Usage:
66

77
```sh
8-
npx create-react-native-library react-native-awesome-module
8+
npx create-react-native-library@latest react-native-awesome-library
99
```
1010

1111
See more details on the [GitHub repository](https://github.com/callstack/react-native-builder-bob).

packages/react-native-builder-bob/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Quick start:
66

77
```sh
88
cd your-project
9-
npx react-native-builder-bob init
9+
npx react-native-builder-bob@latest init
1010
```
1111

1212
See more details on the [GitHub repository](https://github.com/callstack/react-native-builder-bob).

0 commit comments

Comments
 (0)