Skip to content

Commit 8898710

Browse files
committed
feat: deprecated set-script, birthday, --global, and --local
1 parent 8a49e3a commit 8898710

22 files changed

+127
-40
lines changed

docs/content/commands/npm-bin.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ 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.
3739

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

docs/content/commands/npm-config.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,8 @@ Not supported by all npm commands.
124124
125125
* Default: false
126126
* Type: Boolean
127+
* DEPRECATED: `--global`, `--local` are deprecated. Use `--location=global`
128+
instead.
127129
128130
Operates in "global" mode, so that packages are installed into the `prefix`
129131
folder instead of the current working directory. See
@@ -156,6 +158,15 @@ The command to run for `npm edit` and `npm config edit`.
156158
157159
When passed to `npm config` this refers to which config file to use.
158160
161+
When set to "global" mode, packages are installed into the `prefix` folder
162+
instead of the current working directory. See
163+
[folders](/configuring-npm/folders) for more on the differences in behavior.
164+
165+
* packages are installed into the `{prefix}/lib/node_modules` folder, instead
166+
of the current working directory.
167+
* bin files are linked to `{prefix}/bin`
168+
* man pages are linked to `{prefix}/share/man`
169+
159170
<!-- automatically generated, do not edit manually -->
160171
<!-- see lib/utils/config/definitions.js -->
161172

docs/content/commands/npm-diff.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,8 @@ 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.
251253
252254
Operates in "global" mode, so that packages are installed into the `prefix`
253255
folder instead of the current working directory. See

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,8 @@ 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.
7375

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

docs/content/commands/npm-install.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -460,6 +460,8 @@ 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.
463465
464466
Operates in "global" mode, so that packages are installed into the `prefix`
465467
folder instead of the current working directory. See

docs/content/commands/npm-link.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,8 @@ 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.
156158

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

docs/content/commands/npm-ls.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,8 @@ 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.
140142

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

docs/content/commands/npm-outdated.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,8 @@ 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.
153155

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

docs/content/commands/npm-prefix.md

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

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

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

docs/content/commands/npm-rebuild.md

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

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

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

0 commit comments

Comments
 (0)