Skip to content

Commit eb4382c

Browse files
committed
docs: update version 19.x docs.
1 parent 2ee8e30 commit eb4382c

File tree

6 files changed

+9
-9
lines changed

6 files changed

+9
-9
lines changed

website/versioned_docs/version-19.x/APIRef.DetoxCLI.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ sidebar_label: Detox Command Line Tools
1414
Install `detox-cli` globally via [npm](http://npmjs.org/detox-cli):
1515

1616
```bash npm2yarn
17-
npm install -g detox-cli
17+
npm install detox-cli --global
1818
```
1919

2020
### Usage

website/versioned_docs/version-19.x/Guide.Contributing.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ Either install `npm` or check that you have it installed, using their [official
4040
#### Install the monorepo management tool, `lerna`
4141

4242
```bash npm2yarn
43-
npm install -g [email protected]
43+
npm install [email protected] --global
4444
```
4545

4646
For all the internal projects (detox, detox-cli, demos, test) `lerna` will create symbolic links in `node_modules` instead of `npm` copying the content of the projects. This way, any change you do on any code is there immediately. There is no need to update node modules or copy files between projects.
@@ -50,7 +50,7 @@ For all the internal projects (detox, detox-cli, demos, test) `lerna` will creat
5050
React-Native CLI:
5151

5252
```bash npm2yarn
53-
npm install -g react-native-cli
53+
npm install react-native-cli --global
5454
```
5555

5656
Watchman:

website/versioned_docs/version-19.x/Guide.Migration.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ Cannot find module 'jest-cli/build/cli/args'
175175
If you were using `detox-cli` global package, make sure to upgrade it before proceeding to `[email protected]`.
176176

177177
```bash npm2yarn
178-
npm -g install detox-cli
178+
npm install detox-cli --global
179179
```
180180

181181
If you have an older version of `detox-cli`, then you might see the following error on an attempt to run `detox test <...args>`:

website/versioned_docs/version-19.x/Guide.RunningOnCI.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,8 @@ install:
9494
- nvm use $NODE_VERSION
9595
- nvm alias default $NODE_VERSION
9696

97-
- npm install -g react-native-cli
98-
- npm install -g detox-cli
97+
- npm install react-native-cli --global
98+
- npm install detox-cli --global
9999

100100
script:
101101
- detox build --configuration ios.sim.release
@@ -190,7 +190,7 @@ detox_e2e:
190190
image: reactnativecommunity/react-native-android
191191
variables:
192192
before_script:
193-
- npm i -g envinfo detox-cli && envinfo
193+
- npm install envinfo detox-cli --global && envinfo
194194
# Increase file watcher limit, see more here: https://github.com/guard/listen/wiki/Increasing-the-amount-of-inotify-watchers#the-technical-details
195195
- echo fs.inotify.max_user_watches=524288 | tee -a /etc/sysctl.conf && sysctl -p
196196
- mkdir -p /root/.android && touch /root/.android/repositories.cfg

website/versioned_docs/version-19.x/Guide.Uninstalling.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,5 +101,5 @@ adb -s <emulator-port> shell rm -rf /sdcard/*_*.*
101101
If you have installed the official CLI wrapper for Detox, then make sure to uninstall it as well:
102102

103103
```bash npm2yarn
104-
npm uninstall -g detox-cli
104+
npm uninstall detox-cli --global
105105
```

website/versioned_docs/version-19.x/Introduction.GettingStarted.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ brew install node
3838
This package makes it easier to operate Detox from the command line. `detox-cli` should be installed globally, enabling usage of the command line tools outside your npm scripts. `detox-cli` is merely a script that passes commands through to a command line tool shipped inside `detox` package (in `node_modules/.bin/detox`).
3939

4040
```bash npm2yarn
41-
npm install -g detox-cli
41+
npm install detox-cli --global
4242
```
4343

4444
### Install Platform-specific Dependencies, Tools and SDKs

0 commit comments

Comments
 (0)