Skip to content

Commit 40c823c

Browse files
authored
fix: undeprecate and remove warnings for --global, -g, --local (#4982)
1 parent 4ee12d0 commit 40c823c

File tree

16 files changed

+34
-67
lines changed

16 files changed

+34
-67
lines changed

docs/content/commands/npm-bin.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,6 @@ Print the folder where npm will install executables.
3434

3535
* Default: false
3636
* Type: Boolean
37-
* DEPRECATED: `--global`, `--local` are deprecated. Use `--location=global`
38-
instead.
3937

4038
Operates in "global" mode, so that packages are installed into the `prefix`
4139
folder instead of the current working directory. See

docs/content/commands/npm-config.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,6 @@ Not supported by all npm commands.
124124
125125
* Default: false
126126
* Type: Boolean
127-
* DEPRECATED: `--global`, `--local` are deprecated. Use `--location=global`
128-
instead.
129127
130128
Operates in "global" mode, so that packages are installed into the `prefix`
131129
folder instead of the current working directory. See

docs/content/commands/npm-diff.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -248,8 +248,6 @@ Treat all files as text in `npm diff`.
248248
249249
* Default: false
250250
* Type: Boolean
251-
* DEPRECATED: `--global`, `--local` are deprecated. Use `--location=global`
252-
instead.
253251
254252
Operates in "global" mode, so that packages are installed into the `prefix`
255253
folder instead of the current working directory. See

docs/content/commands/npm-install-test.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,6 @@ rather than using npm's default semver range operator.
7070

7171
* Default: false
7272
* Type: Boolean
73-
* DEPRECATED: `--global`, `--local` are deprecated. Use `--location=global`
74-
instead.
7573

7674
Operates in "global" mode, so that packages are installed into the `prefix`
7775
folder instead of the current working directory. See

docs/content/commands/npm-install.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -460,8 +460,6 @@ rather than using npm's default semver range operator.
460460
461461
* Default: false
462462
* Type: Boolean
463-
* DEPRECATED: `--global`, `--local` are deprecated. Use `--location=global`
464-
instead.
465463
466464
Operates in "global" mode, so that packages are installed into the `prefix`
467465
folder instead of the current working directory. See

docs/content/commands/npm-link.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,8 +153,6 @@ rather than using npm's default semver range operator.
153153

154154
* Default: false
155155
* Type: Boolean
156-
* DEPRECATED: `--global`, `--local` are deprecated. Use `--location=global`
157-
instead.
158156

159157
Operates in "global" mode, so that packages are installed into the `prefix`
160158
folder instead of the current working directory. See

docs/content/commands/npm-ls.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,8 +137,6 @@ Output parseable results from commands that write to standard output. For
137137

138138
* Default: false
139139
* Type: Boolean
140-
* DEPRECATED: `--global`, `--local` are deprecated. Use `--location=global`
141-
instead.
142140

143141
Operates in "global" mode, so that packages are installed into the `prefix`
144142
folder instead of the current working directory. See

docs/content/commands/npm-outdated.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,8 +150,6 @@ Output parseable results from commands that write to standard output. For
150150

151151
* Default: false
152152
* Type: Boolean
153-
* DEPRECATED: `--global`, `--local` are deprecated. Use `--location=global`
154-
instead.
155153

156154
Operates in "global" mode, so that packages are installed into the `prefix`
157155
folder instead of the current working directory. See

docs/content/commands/npm-prefix.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,6 @@ npm prefix -g
5151

5252
* Default: false
5353
* Type: Boolean
54-
* DEPRECATED: `--global`, `--local` are deprecated. Use `--location=global`
55-
instead.
5654

5755
Operates in "global" mode, so that packages are installed into the `prefix`
5856
folder instead of the current working directory. See

docs/content/commands/npm-rebuild.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,6 @@ will be rebuilt.
4242

4343
* Default: false
4444
* Type: Boolean
45-
* DEPRECATED: `--global`, `--local` are deprecated. Use `--location=global`
46-
instead.
4745

4846
Operates in "global" mode, so that packages are installed into the `prefix`
4947
folder instead of the current working directory. See

0 commit comments

Comments
 (0)