Skip to content

Commit 4b9e162

Browse files
authored
docs: do not recommend using @latest (#2416) [skip ci]
1 parent 1cb0cba commit 4b9e162

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

README.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,24 @@ _If you want to migrate an existing test app for a library, follow the
2727
You can generate a new project using `npx`:
2828

2929
```sh
30-
npx --package react-native-test-app@latest init
30+
npx --package react-native-test-app@<version> init
31+
# For example: npx --package [email protected] init
3132
```
3233

34+
You can always find the latest version here:
35+
https://github.com/microsoft/react-native-test-app/releases
36+
37+
Alternatively, if you're using a Bash-compatible shell:
38+
39+
```sh
40+
npx --package react-native-test-app@$(npm view react-native-test-app version) init
41+
```
42+
43+
> [!NOTE]
44+
>
45+
> We don't recommend using `@latest` because npm may not always use the latest
46+
> version. See https://github.com/npm/cli/issues/5262 for more details.
47+
3348
In this example, we will create a project named "sample" in `sample` with apps
3449
for all platforms:
3550

0 commit comments

Comments
 (0)