1 ---
2 title: config
3 section: 7
4 description: More than you probably want to know about npm configuration
5 github_repo: npm/cli
6 github_branch: latest
7 github_path: docs/lib/content/using-npm/config.md
8 redirect_from:
9 - /cli-documentation/misc/config
10 - /cli-documentation/using-npm/config
11 - /cli-documentation/v11/misc/config
12 - /cli-documentation/v11/using-npm/config
13 - /cli/misc/config
14 - /cli/using-npm/config
15 - /cli/v11/misc/config
16 - /misc/config
17 - /using-npm/config
18 ---
19
20 ### Description
21
22 This article details npm configuration in general. To learn about the `config` command, see [`npm config`](/cli/v11/commands/npm-config).
23
24 npm gets its configuration values from the following sources, sorted by priority:
25
26 #### Command Line Flags
27
28 Putting `--foo bar` on the command line sets the `foo` configuration parameter to `"bar"`. A `--` argument tells the cli parser to stop reading flags. Using `--flag` without specifying any value will set the value to `true`.
29
30 Example: `--flag1 --flag2` will set both configuration parameters to `true`, while `--flag1 --flag2 bar` will set `flag1` to `true`, and `flag2` to `bar`. Finally, `--flag1 --flag2 -- bar` will set both configuration parameters to `true`, and the `bar` is taken as a command argument.
31
32 #### Environment Variables
33
34 Any environment variables that start with `npm_config_` will be interpreted as a configuration parameter. For example, putting `npm_config_foo=bar` in your environment will set the `foo` configuration parameter to `bar`. Any environment configurations that are not given a value will be given the value of `true`. Config values are case-insensitive, so `NPM_CONFIG_FOO=bar` will work the same. However, please note that inside [`scripts`](/cli/v11/using-npm/scripts) npm will set its own environment variables and Node will prefer those lowercase versions over any uppercase ones that you might set. For details see [this issue](https://github.com/npm/npm/issues/14528).
35
36 Notice that you need to use underscores instead of dashes, so `--allow-same-version` would become `npm_config_allow_same_version=true`.
37
38 #### npmrc Files
39
40 The four relevant files are:
41
42 - per-project configuration file (`/path/to/my/project/.npmrc`)
43 - per-user configuration file (defaults to `$HOME/.npmrc`; configurable via CLI option `--userconfig` or environment variable `$NPM_CONFIG_USERCONFIG`)
44 - global configuration file (defaults to `$PREFIX/etc/npmrc`; configurable via CLI option `--globalconfig` or environment variable `$NPM_CONFIG_GLOBALCONFIG`)
45 - npm's built-in configuration file (`/path/to/npm/npmrc`)
46
47 See [npmrc](/cli/v11/configuring-npm/npmrc) for more details.
48
49 #### Default Configs
50
51 Run `npm config ls -l` to see a set of configuration parameters that are internal to npm, and are defaults if nothing else is specified.
52
53 ### Shorthands and Other CLI Niceties
54
55 The following shorthands are parsed on the command-line:
56
57 - `-a`: `--all`
58 - `--enjoy-by`: `--before`
59 - `-c`: `--call`
60 - `--desc`: `--description`
61 - `-f`: `--force`
62 - `-g`: `--global`
63 - `--iwr`: `--include-workspace-root`
64 - `-L`: `--location`
65 - `-d`: `--loglevel info`
66 - `-s`: `--loglevel silent`
67 - `--silent`: `--loglevel silent`
68 - `--ddd`: `--loglevel silly`
69 - `--dd`: `--loglevel verbose`
70 - `--verbose`: `--loglevel verbose`
71 - `-q`: `--loglevel warn`
72 - `--quiet`: `--loglevel warn`
73 - `-l`: `--long`
74 - `-m`: `--message`
75 - `--local`: `--no-global`
76 - `-n`: `--no-yes`
77 - `--no`: `--no-yes`
78 - `-p`: `--parseable`
79 - `--porcelain`: `--parseable`
80 - `-C`: `--prefix`
81 - `--readonly`: `--read-only`
82 - `--reg`: `--registry`
83 - `-S`: `--save`
84 - `-B`: `--save-bundle`
85 - `-D`: `--save-dev`
86 - `-E`: `--save-exact`
87 - `-O`: `--save-optional`
88 - `-P`: `--save-prod`
89 - `-?`: `--usage`
90 - `-h`: `--usage`
91 - `-H`: `--usage`
92 - `--help`: `--usage`
93 - `-v`: `--version`
94 - `-w`: `--workspace`
95 - `--ws`: `--workspaces`
96 - `-y`: `--yes`
97
98 If the specified configuration param resolves unambiguously to a known configuration parameter, then it is expanded to that configuration parameter. For example:
99
100 ```bash
101 npm ls --par
102 # same as:
103 npm ls --parseable
104 ```
105
106 If multiple single-character shorthands are strung together, and the resulting combination is unambiguously not some other configuration param, then it is expanded to its various component pieces. For example:
107
108 ```bash
109 npm ls -gpld
110 # same as:
111 npm ls --global --parseable --long --loglevel info
112 ```
113
114 ### Config Settings
115
116 #### `_auth`
117
118 - Default: null
119 - Type: null or String
120
121 A basic-auth string to use when authenticating against the npm registry. This will ONLY be used to authenticate against the npm registry. For other registries you will need to scope it like "//other-registry.tld/:\_auth"
122
123 Warning: This should generally not be set via a command-line option. It is safer to use a registry-provided authentication bearer token stored in the ~/.npmrc file by running `npm login`.
124
125 #### `access`
126
127 - Default: 'public' for new packages, existing packages it will not change the current level
128 - Type: null, "restricted", or "public"
129
130 If you do not want your scoped package to be publicly viewable (and installable) set `--access=restricted`.
131
132 Unscoped packages cannot be set to `restricted`.
133
134 Note: This defaults to not changing the current access level for existing packages. Specifying a value of `restricted` or `public` during publish will change the access for an existing package the same way that `npm access set status` would.
135
136 #### `all`
137
138 - Default: false
139 - Type: Boolean
140
141 When running `npm outdated` and `npm ls`, setting `--all` will show all outdated or installed packages, rather than only those directly depended upon by the current project.
142
143 #### `allow-same-version`
144
145 - Default: false
146 - Type: Boolean
147
148 Prevents throwing an error when `npm version` is used to set the new version to the same value as the current version.
149
150 #### `audit`
151
152 - Default: true
153 - Type: Boolean
154
155 When "true" submit audit reports alongside the current npm command to the default registry and all registries configured for scopes. See the documentation for [`npm audit`](/cli/v11/commands/npm-audit) for details on what is submitted.
156
157 #### `audit-level`
158
159 - Default: null
160 - Type: null, "info", "low", "moderate", "high", "critical", or "none"
161
162 The minimum level of vulnerability for `npm audit` to exit with a non-zero exit code.
163
164 #### `auth-type`
165
166 - Default: "web"
167 - Type: "legacy" or "web"
168
169 What authentication strategy to use with `login`. Note that if an `otp` config is given, this value will always be set to `legacy`.
170
171 #### `before`
172
173 - Default: null
174 - Type: null or Date
175
176 If passed to `npm install`, will rebuild the npm tree such that only versions that were available **on or before** the given date are installed. If there are no versions available for the current set of dependencies, the command will error.
177
178 If the requested version is a `dist-tag` and the given tag does not pass the `--before` filter, the most recent version less than or equal to that tag will be used. For example, `foo@latest` might install `foo@1.2` even though `latest` is `2.0`.
179
180 #### `bin-links`
181
182 - Default: true
183 - Type: Boolean
184
185 Tells npm to create symlinks (or `.cmd` shims on Windows) for package executables.
186
187 Set to false to have it not do this. This can be used to work around the fact that some file systems don't support symlinks, even on ostensibly Unix systems.
188
189 #### `browser`
190
191 - Default: macOS: `"open"`, Windows: `"start"`, Others: `"xdg-open"`
192 - Type: null, Boolean, or String
193
194 The browser that is called by npm commands to open websites.
195
196 Set to `false` to suppress browser behavior and instead print urls to terminal.
197
198 Set to `true` to use default system URL opener.
199
200 #### `ca`
201
202 - Default: null
203 - Type: null or String (can be set multiple times)
204
205 The Certificate Authority signing certificate that is trusted for SSL connections to the registry. Values should be in PEM format (Windows calls it "Base-64 encoded X.509 (.CER)") with newlines replaced by the string "\n". For example:
206
207 ```ini
208 ca="-----BEGIN CERTIFICATE-----\nXXXX\nXXXX\n-----END CERTIFICATE-----"
209 ```
210
211 Set to `null` to only allow "known" registrars, or to a specific CA cert to trust only that specific signing authority.
212
213 Multiple CAs can be trusted by specifying an array of certificates:
214
215 ```ini
216 ca[]="..."
217 ca[]="..."
218 ```
219
220 See also the `strict-ssl` config.
221
222 #### `cache`
223
224 - Default: Windows: `%LocalAppData%\npm-cache`, Posix: `~/.npm`
225 - Type: Path
226
227 The location of npm's cache directory.
228
229 #### `cafile`
230
231 - Default: null
232 - Type: Path
233
234 A path to a file containing one or multiple Certificate Authority signing certificates. Similar to the `ca` setting, but allows for multiple CA's, as well as for the CA information to be stored in a file on disk.
235
236 #### `call`
237
238 - Default: ""
239 - Type: String
240
241 Optional companion option for `npm exec`, `npx` that allows for specifying a custom command to be run along with the installed packages.
242
243 ```bash
244 npm exec --package yo --package generator-node --call "yo node"
245 ```
246
247 #### `cidr`
248
249 - Default: null
250 - Type: null or String (can be set multiple times)
251
252 This is a list of CIDR address to be used when configuring limited access tokens with the `npm token create` command.
253
254 #### `color`
255
256 - Default: true unless the NO_COLOR environ is set to something other than '0'
257 - Type: "always" or Boolean
258
259 If false, never shows colors. If `"always"` then always shows colors. If true, then only prints color codes for tty file descriptors.
260
261 #### `commit-hooks`
262
263 - Default: true
264 - Type: Boolean
265
266 Run git commit hooks when using the `npm version` command.
267
268 #### `cpu`
269
270 - Default: null
271 - Type: null or String
272
273 Override CPU architecture of native modules to install. Acceptable values are same as `cpu` field of package.json, which comes from `process.arch`.
274
275 #### `depth`
276
277 - Default: `Infinity` if `--all` is set; otherwise, `0`
278 - Type: null or Number
279
280 The depth to go when recursing packages for `npm ls`.
281
282 If not set, `npm ls` will show only the immediate dependencies of the root project. If `--all` is set, then npm will show all dependencies by default.
283
284 #### `description`
285
286 - Default: true
287 - Type: Boolean
288
289 Show the description in `npm search`
290
291 #### `diff`
292
293 - Default:
294 - Type: String (can be set multiple times)
295
296 Define arguments to compare in `npm diff`.
297
298 #### `diff-dst-prefix`
299
300 - Default: "b/"
301 - Type: String
302
303 Destination prefix to be used in `npm diff` output.
304
305 #### `diff-ignore-all-space`
306
307 - Default: false
308 - Type: Boolean
309
310 Ignore whitespace when comparing lines in `npm diff`.
311
312 #### `diff-name-only`
313
314 - Default: false
315 - Type: Boolean
316
317 Prints only filenames when using `npm diff`.
318
319 #### `diff-no-prefix`
320
321 - Default: false
322 - Type: Boolean
323
324 Do not show any source or destination prefix in `npm diff` output.
325
326 Note: this causes `npm diff` to ignore the `--diff-src-prefix` and `--diff-dst-prefix` configs.
327
328 #### `diff-src-prefix`
329
330 - Default: "a/"
331 - Type: String
332
333 Source prefix to be used in `npm diff` output.
334
335 #### `diff-text`
336
337 - Default: false
338 - Type: Boolean
339
340 Treat all files as text in `npm diff`.
341
342 #### `diff-unified`
343
344 - Default: 3
345 - Type: Number
346
347 The number of lines of context to print in `npm diff`.
348
349 #### `dry-run`
350
351 - Default: false
352 - Type: Boolean
353
354 Indicates that you don't want npm to make any changes and that it should only report what it would have done. This can be passed into any of the commands that modify your local installation, eg, `install`, `update`, `dedupe`, `uninstall`, as well as `pack` and `publish`.
355
356 Note: This is NOT honored by other network related commands, eg `dist-tags`, `owner`, etc.
357
358 #### `editor`
359
360 - Default: The EDITOR or VISUAL environment variables, or '%SYSTEMROOT%\notepad.exe' on Windows, or 'vi' on Unix systems
361 - Type: String
362
363 The command to run for `npm edit` and `npm config edit`.
364
365 #### `engine-strict`
366
367 - Default: false
368 - Type: Boolean
369
370 If set to true, then npm will stubbornly refuse to install (or even consider installing) any package that claims to not be compatible with the current Node.js version.
371
372 This can be overridden by setting the `--force` flag.
373
374 #### `expect-result-count`
375
376 - Default: null
377 - Type: null or Number
378
379 Tells to expect a specific number of results from the command.
380
381 This config cannot be used with: `expect-results`
382
383 #### `expect-results`
384
385 - Default: null
386 - Type: null or Boolean
387
388 Tells npm whether or not to expect results from the command. Can be either true (expect some results) or false (expect no results).
389
390 This config cannot be used with: `expect-result-count`
391
392 #### `fetch-retries`
393
394 - Default: 2
395 - Type: Number
396
397 The "retries" config for the `retry` module to use when fetching packages from the registry.
398
399 npm will retry idempotent read requests to the registry in the case of network failures or 5xx HTTP errors.
400
401 #### `fetch-retry-factor`
402
403 - Default: 10
404 - Type: Number
405
406 The "factor" config for the `retry` module to use when fetching packages.
407
408 #### `fetch-retry-maxtimeout`
409
410 - Default: 60000 (1 minute)
411 - Type: Number
412
413 The "maxTimeout" config for the `retry` module to use when fetching packages.
414
415 #### `fetch-retry-mintimeout`
416
417 - Default: 10000 (10 seconds)
418 - Type: Number
419
420 The "minTimeout" config for the `retry` module to use when fetching packages.
421
422 #### `fetch-timeout`
423
424 - Default: 300000 (5 minutes)
425 - Type: Number
426
427 The maximum amount of time to wait for HTTP requests to complete.
428
429 #### `force`
430
431 - Default: false
432 - Type: Boolean
433
434 Removes various protections against unfortunate side effects, common mistakes, unnecessary performance degradation, and malicious input.
435
436 - Allow clobbering non-npm files in global installs.
437 - Allow the `npm version` command to work on an unclean git repository.
438 - Allow deleting the cache folder with `npm cache clean`.
439 - Allow installing packages that have an `engines` declaration requiring a different version of npm.
440 - Allow installing packages that have an `engines` declaration requiring a different version of `node`, even if `--engine-strict` is enabled.
441 - Allow `npm audit fix` to install modules outside your stated dependency range (including SemVer-major changes).
442 - Allow unpublishing all versions of a published package.
443 - Allow conflicting peerDependencies to be installed in the root project.
444 - Implicitly set `--yes` during `npm init`.
445 - Allow clobbering existing values in `npm pkg`
446 - Allow unpublishing of entire packages (not just a single version).
447
448 If you don't have a clear idea of what you want to do, it is strongly recommended that you do not use this option!
449
450 #### `foreground-scripts`
451
452 - Default: `false` unless when using `npm pack` or `npm publish` where it defaults to `true`
453 - Type: Boolean
454
455 Run all build scripts (ie, `preinstall`, `install`, and `postinstall`) scripts for installed packages in the foreground process, sharing standard input, output, and error with the main npm process.
456
457 Note that this will generally make installs run slower, and be much noisier, but can be useful for debugging.
458
459 #### `format-package-lock`
460
461 - Default: true
462 - Type: Boolean
463
464 Format `package-lock.json` or `npm-shrinkwrap.json` as a human readable file.
465
466 #### `fund`
467
468 - Default: true
469 - Type: Boolean
470
471 When "true" displays the message at the end of each `npm install` acknowledging the number of dependencies looking for funding. See [`npm fund`](/cli/v11/commands/npm-fund) for details.
472
473 #### `git`
474
475 - Default: "git"
476 - Type: String
477
478 The command to use for git commands. If git is installed on the computer, but is not in the `PATH`, then set this to the full path to the git binary.
479
480 #### `git-tag-version`
481
482 - Default: true
483 - Type: Boolean
484
485 Tag the commit when using the `npm version` command. Setting this to false results in no commit being made at all.
486
487 #### `global`
488
489 - Default: false
490 - Type: Boolean
491
492 Operates in "global" mode, so that packages are installed into the `prefix` folder instead of the current working directory. See [folders](/cli/v11/configuring-npm/folders) for more on the differences in behavior.
493
494 - packages are installed into the `{prefix}/lib/node_modules` folder, instead of the current working directory.
495 - bin files are linked to `{prefix}/bin`
496 - man pages are linked to `{prefix}/share/man`
497
498 #### `globalconfig`
499
500 - Default: The global --prefix setting plus 'etc/npmrc'. For example, '/usr/local/etc/npmrc'
501 - Type: Path
502
503 The config file to read for global config options.
504
505 #### `heading`
506
507 - Default: "npm"
508 - Type: String
509
510 The string that starts all the debugging log output.
511
512 #### `https-proxy`
513
514 - Default: null
515 - Type: null or URL
516
517 A proxy to use for outgoing https requests. If the `HTTPS_PROXY` or `https_proxy` or `HTTP_PROXY` or `http_proxy` environment variables are set, proxy settings will be honored by the underlying `make-fetch-happen` library.
518
519 #### `if-present`
520
521 - Default: false
522 - Type: Boolean
523
524 If true, npm will not exit with an error code when `run` is invoked for a script that isn't defined in the `scripts` section of `package.json`. This option can be used when it's desirable to optionally run a script when it's present and fail if the script fails. This is useful, for example, when running scripts that may only apply for some builds in an otherwise generic CI setup.
525
526 This value is not exported to the environment for child processes.
527
528 #### `ignore-scripts`
529
530 - Default: false
531 - Type: Boolean
532
533 If true, npm does not run scripts specified in package.json files.
534
535 Note that commands explicitly intended to run a particular script, such as `npm start`, `npm stop`, `npm restart`, `npm test`, and `npm run` will still run their intended script if `ignore-scripts` is set, but they will _not_ run any pre- or post-scripts.
536
537 #### `include`
538
539 - Default:
540 - Type: "prod", "dev", "optional", or "peer" (can be set multiple times)
541
542 Option that allows for defining which types of dependencies to install.
543
544 This is the inverse of `--omit=<type>`.
545
546 Dependency types specified in `--include` will not be omitted, regardless of the order in which omit/include are specified on the command-line.
547
548 #### `include-staged`
549
550 - Default: false
551 - Type: Boolean
552
553 Allow installing "staged" published packages, as defined by [npm RFC PR #92](https://github.com/npm/rfcs/pull/92).
554
555 This is experimental, and not implemented by the npm public registry.
556
557 #### `include-workspace-root`
558
559 - Default: false
560 - Type: Boolean
561
562 Include the workspace root when workspaces are enabled for a command.
563
564 When false, specifying individual workspaces via the `workspace` config, or all workspaces via the `workspaces` flag, will cause npm to operate only on the specified workspaces, and not on the root project.
565
566 This value is not exported to the environment for child processes.
567
568 #### `init-author-email`
569
570 - Default: ""
571 - Type: String
572
573 The value `npm init` should use by default for the package author's email.
574
575 #### `init-author-name`
576
577 - Default: ""
578 - Type: String
579
580 The value `npm init` should use by default for the package author's name.
581
582 #### `init-author-url`
583
584 - Default: ""
585 - Type: "" or URL
586
587 The value `npm init` should use by default for the package author's homepage.
588
589 #### `init-license`
590
591 - Default: "ISC"
592 - Type: String
593
594 The value `npm init` should use by default for the package license.
595
596 #### `init-module`
597
598 - Default: "~/.npm-init.js"
599 - Type: Path
600
601 A module that will be loaded by the `npm init` command. See the documentation for the [init-package-json](https://github.com/npm/init-package-json) module for more information, or [npm init](/cli/v11/commands/npm-init).
602
603 #### `init-private`
604
605 - Default: false
606 - Type: Boolean
607
608 The value `npm init` should use by default for the package's private flag.
609
610 #### `init-type`
611
612 - Default: "commonjs"
613 - Type: String
614
615 The value that `npm init` should use by default for the package.json type field.
616
617 #### `init-version`
618
619 - Default: "1.0.0"
620 - Type: SemVer string
621
622 The value that `npm init` should use by default for the package version number, if not already set in package.json.
623
624 #### `install-links`
625
626 - Default: false
627 - Type: Boolean
628
629 When set file: protocol dependencies will be packed and installed as regular dependencies instead of creating a symlink. This option has no effect on workspaces.
630
631 #### `install-strategy`
632
633 - Default: "hoisted"
634 - Type: "hoisted", "nested", "shallow", or "linked"
635
636 Sets the strategy for installing packages in node_modules. hoisted (default): Install non-duplicated in top-level, and duplicated as necessary within directory structure. nested: (formerly --legacy-bundling) install in place, no hoisting. shallow (formerly --global-style) only install direct deps at top-level. linked: (experimental) install in node_modules/.store, link in place, unhoisted.
637
638 #### `json`
639
640 - Default: false
641 - Type: Boolean
642
643 Whether or not to output JSON data, rather than the normal output.
644
645 - In `npm pkg set` it enables parsing set values with JSON.parse() before saving them to your `package.json`.
646
647 Not supported by all npm commands.
648
649 #### `legacy-peer-deps`
650
651 - Default: false
652 - Type: Boolean
653
654 Causes npm to completely ignore `peerDependencies` when building a package tree, as in npm versions 3 through 6.
655
656 If a package cannot be installed because of overly strict `peerDependencies` that collide, it provides a way to move forward resolving the situation.
657
658 This differs from `--omit=peer`, in that `--omit=peer` will avoid unpacking `peerDependencies` on disk, but will still design a tree such that `peerDependencies` _could_ be unpacked in a correct place.
659
660 Use of `legacy-peer-deps` is not recommended, as it will not enforce the `peerDependencies` contract that meta-dependencies may rely on.
661
662 #### `libc`
663
664 - Default: null
665 - Type: null or String
666
667 Override libc of native modules to install. Acceptable values are same as `libc` field of package.json
668
669 #### `link`
670
671 - Default: false
672 - Type: Boolean
673
674 Used with `npm ls`, limiting output to only those packages that are linked.
675
676 #### `local-address`
677
678 - Default: null
679 - Type: IP Address
680
681 The IP address of the local interface to use when making connections to the npm registry. Must be IPv4 in versions of Node prior to 0.12.
682
683 #### `location`
684
685 - Default: "user" unless `--global` is passed, which will also set this value to "global"
686 - Type: "global", "user", or "project"
687
688 When passed to `npm config` this refers to which config file to use.
689
690 When set to "global" mode, packages are installed into the `prefix` folder instead of the current working directory. See [folders](/cli/v11/configuring-npm/folders) for more on the differences in behavior.
691
692 - packages are installed into the `{prefix}/lib/node_modules` folder, instead of the current working directory.
693 - bin files are linked to `{prefix}/bin`
694 - man pages are linked to `{prefix}/share/man`
695
696 #### `lockfile-version`
697
698 - Default: Version 3 if no lockfile, auto-converting v1 lockfiles to v3; otherwise, maintain current lockfile version.
699 - Type: null, 1, 2, 3, "1", "2", or "3"
700
701 Set the lockfile format version to be used in package-lock.json and npm-shrinkwrap-json files. Possible options are:
702
703 1: The lockfile version used by npm versions 5 and 6. Lacks some data that is used during the install, resulting in slower and possibly less deterministic installs. Prevents lockfile churn when interoperating with older npm versions.
704
705 2: The default lockfile version used by npm version 7 and 8. Includes both the version 1 lockfile data and version 3 lockfile data, for maximum determinism and interoperability, at the expense of more bytes on disk.
706
707 3: Only the new lockfile information introduced in npm version 7. Smaller on disk than lockfile version 2, but not interoperable with older npm versions. Ideal if all users are on npm version 7 and higher.
708
709 #### `loglevel`
710
711 - Default: "notice"
712 - Type: "silent", "error", "warn", "notice", "http", "info", "verbose", or "silly"
713
714 What level of logs to report. All logs are written to a debug log, with the path to that file printed if the execution of a command fails.
715
716 Any logs of a higher level than the setting are shown. The default is "notice".
717
718 See also the `foreground-scripts` config.
719
720 #### `logs-dir`
721
722 - Default: A directory named `_logs` inside the cache
723 - Type: null or Path
724
725 The location of npm's log directory. See [`npm logging`](/cli/v11/using-npm/logging) for more information.
726
727 #### `logs-max`
728
729 - Default: 10
730 - Type: Number
731
732 The maximum number of log files to store.
733
734 If set to 0, no log files will be written for the current run.
735
736 #### `long`
737
738 - Default: false
739 - Type: Boolean
740
741 Show extended information in `ls`, `search`, and `help-search`.
742
743 #### `maxsockets`
744
745 - Default: 15
746 - Type: Number
747
748 The maximum number of connections to use per origin (protocol/host/port combination).
749
750 #### `message`
751
752 - Default: "%s"
753 - Type: String
754
755 Commit message which is used by `npm version` when creating version commit.
756
757 Any "%s" in the message will be replaced with the version number.
758
759 #### `node-gyp`
760
761 - Default: The path to the node-gyp bin that ships with npm
762 - Type: Path
763
764 This is the location of the "node-gyp" bin. By default it uses one that ships with npm itself.
765
766 You can use this config to specify your own "node-gyp" to run when it is required to build a package.
767
768 #### `node-options`
769
770 - Default: null
771 - Type: null or String
772
773 Options to pass through to Node.js via the `NODE_OPTIONS` environment variable. This does not impact how npm itself is executed but it does impact how lifecycle scripts are called.
774
775 #### `noproxy`
776
777 - Default: The value of the NO_PROXY environment variable
778 - Type: String (can be set multiple times)
779
780 Domain extensions that should bypass any proxies.
781
782 Also accepts a comma-delimited string.
783
784 #### `offline`
785
786 - Default: false
787 - Type: Boolean
788
789 Force offline mode: no network requests will be done during install. To allow the CLI to fill in missing cache data, see `--prefer-offline`.
790
791 #### `omit`
792
793 - Default: 'dev' if the `NODE_ENV` environment variable is set to 'production'; otherwise, empty.
794 - Type: "dev", "optional", or "peer" (can be set multiple times)
795
796 Dependency types to omit from the installation tree on disk.
797
798 Note that these dependencies _are_ still resolved and added to the `package-lock.json` or `npm-shrinkwrap.json` file. They are just not physically installed on disk.
799
800 If a package type appears in both the `--include` and `--omit` lists, then it will be included.
801
802 If the resulting omit list includes `'dev'`, then the `NODE_ENV` environment variable will be set to `'production'` for all lifecycle scripts.
803
804 #### `omit-lockfile-registry-resolved`
805
806 - Default: false
807 - Type: Boolean
808
809 This option causes npm to create lock files without a `resolved` key for registry dependencies. Subsequent installs will need to resolve tarball endpoints with the configured registry, likely resulting in a longer install time.
810
811 #### `os`
812
813 - Default: null
814 - Type: null or String
815
816 Override OS of native modules to install. Acceptable values are same as `os` field of package.json, which comes from `process.platform`.
817
818 #### `otp`
819
820 - Default: null
821 - Type: null or String
822
823 This is a one-time password from a two-factor authenticator. It's needed when publishing or changing package permissions with `npm access`.
824
825 If not set, and a registry response fails with a challenge for a one-time password, npm will prompt on the command line for one.
826
827 #### `pack-destination`
828
829 - Default: "."
830 - Type: String
831
832 Directory in which `npm pack` will save tarballs.
833
834 #### `package`
835
836 - Default:
837 - Type: String (can be set multiple times)
838
839 The package or packages to install for [`npm exec`](/cli/v11/commands/npm-exec)
840
841 #### `package-lock`
842
843 - Default: true
844 - Type: Boolean
845
846 If set to false, then ignore `package-lock.json` files when installing. This will also prevent _writing_ `package-lock.json` if `save` is true.
847
848 #### `package-lock-only`
849
850 - Default: false
851 - Type: Boolean
852
853 If set to true, the current operation will only use the `package-lock.json`, ignoring `node_modules`.
854
855 For `update` this means only the `package-lock.json` will be updated, instead of checking `node_modules` and downloading dependencies.
856
857 For `list` this means the output will be based on the tree described by the `package-lock.json`, rather than the contents of `node_modules`.
858
859 #### `parseable`
860
861 - Default: false
862 - Type: Boolean
863
864 Output parseable results from commands that write to standard output. For `npm search`, this will be tab-separated table format.
865
866 #### `prefer-dedupe`
867
868 - Default: false
869 - Type: Boolean
870
871 Prefer to deduplicate packages if possible, rather than choosing a newer version of a dependency.
872
873 #### `prefer-offline`
874
875 - Default: false
876 - Type: Boolean
877
878 If true, staleness checks for cached data will be bypassed, but missing data will be requested from the server. To force full offline mode, use `--offline`.
879
880 #### `prefer-online`
881
882 - Default: false
883 - Type: Boolean
884
885 If true, staleness checks for cached data will be forced, making the CLI look for updates immediately even for fresh package data.
886
887 #### `prefix`
888
889 - Default: In global mode, the folder where the node executable is installed. Otherwise, the nearest parent folder containing either a package.json file or a node_modules folder.
890 - Type: Path
891
892 The location to install global items. If set on the command line, then it forces non-global commands to run in the specified folder.
893
894 #### `preid`
895
896 - Default: ""
897 - Type: String
898
899 The "prerelease identifier" to use as a prefix for the "prerelease" part of a semver. Like the `rc` in `1.2.0-rc.8`.
900
901 #### `progress`
902
903 - Default: `true` when not in CI and both stderr and stdout are TTYs and not in a dumb terminal
904 - Type: Boolean
905
906 When set to `true`, npm will display a progress bar during time intensive operations, if `process.stderr` and `process.stdout` are a TTY.
907
908 Set to `false` to suppress the progress bar.
909
910 #### `provenance`
911
912 - Default: false
913 - Type: Boolean
914
915 When publishing from a supported cloud CI/CD system, the package will be publicly linked to where it was built and published from.
916
917 This config cannot be used with: `provenance-file`
918
919 #### `provenance-file`
920
921 - Default: null
922 - Type: Path
923
924 When publishing, the provenance bundle at the given path will be used.
925
926 This config cannot be used with: `provenance`
927
928 #### `proxy`
929
930 - Default: null
931 - Type: null, false, or URL
932
933 A proxy to use for outgoing http requests. If the `HTTP_PROXY` or `http_proxy` environment variables are set, proxy settings will be honored by the underlying `request` library.
934
935 #### `read-only`
936
937 - Default: false
938 - Type: Boolean
939
940 This is used to mark a token as unable to publish when configuring limited access tokens with the `npm token create` command.
941
942 #### `rebuild-bundle`
943
944 - Default: true
945 - Type: Boolean
946
947 Rebuild bundled dependencies after installation.
948
949 #### `registry`
950
951 - Default: "https://registry.npmjs.org/"
952 - Type: URL
953
954 The base URL of the npm registry.
955
956 #### `replace-registry-host`
957
958 - Default: "npmjs"
959 - Type: "npmjs", "never", "always", or String
960
961 Defines behavior for replacing the registry host in a lockfile with the configured registry.
962
963 The default behavior is to replace package dist URLs from the default registry (https://registry.npmjs.org) to the configured registry. If set to "never", then use the registry value. If set to "always", then replace the registry host with the configured host every time.
964
965 You may also specify a bare hostname (e.g., "registry.npmjs.org").
966
967 #### `save`
968
969 - Default: `true` unless when using `npm update` where it defaults to `false`
970 - Type: Boolean
971
972 Save installed packages to a `package.json` file as dependencies.
973
974 When used with the `npm rm` command, removes the dependency from `package.json`.
975
976 Will also prevent writing to `package-lock.json` if set to `false`.
977
978 #### `save-bundle`
979
980 - Default: false
981 - Type: Boolean
982
983 If a package would be saved at install time by the use of `--save`, `--save-dev`, or `--save-optional`, then also put it in the `bundleDependencies` list.
984
985 Ignored if `--save-peer` is set, since peerDependencies cannot be bundled.
986
987 #### `save-dev`
988
989 - Default: false
990 - Type: Boolean
991
992 Save installed packages to a package.json file as `devDependencies`.
993
994 This config cannot be used with: `save-optional`, `save-peer`, `save-prod`
995
996 #### `save-exact`
997
998 - Default: false
999 - Type: Boolean
1000
1001 Dependencies saved to package.json will be configured with an exact version rather than using npm's default semver range operator.
1002
1003 #### `save-optional`
1004
1005 - Default: false
1006 - Type: Boolean
1007
1008 Save installed packages to a package.json file as `optionalDependencies`.
1009
1010 This config cannot be used with: `save-dev`, `save-peer`, `save-prod`
1011
1012 #### `save-peer`
1013
1014 - Default: false
1015 - Type: Boolean
1016
1017 Save installed packages to a package.json file as `peerDependencies`
1018
1019 This config cannot be used with: `save-dev`, `save-optional`, `save-prod`
1020
1021 #### `save-prefix`
1022
1023 - Default: "^"
1024 - Type: String
1025
1026 Configure how versions of packages installed to a package.json file via `--save` or `--save-dev` get prefixed.
1027
1028 For example if a package has version `1.2.3`, by default its version is set to `^1.2.3` which allows minor upgrades for that package, but after `npm config set save-prefix='~'` it would be set to `~1.2.3` which only allows patch upgrades.
1029
1030 #### `save-prod`
1031
1032 - Default: false
1033 - Type: Boolean
1034
1035 Save installed packages into `dependencies` specifically. This is useful if a package already exists in `devDependencies` or `optionalDependencies`, but you want to move it to be a non-optional production dependency.
1036
1037 This is the default behavior if `--save` is true, and neither `--save-dev` or `--save-optional` are true.
1038
1039 This config cannot be used with: `save-dev`, `save-optional`, `save-peer`
1040
1041 #### `sbom-format`
1042
1043 - Default: null
1044 - Type: "cyclonedx" or "spdx"
1045
1046 SBOM format to use when generating SBOMs.
1047
1048 #### `sbom-type`
1049
1050 - Default: "library"
1051 - Type: "library", "application", or "framework"
1052
1053 The type of package described by the generated SBOM. For SPDX, this is the value for the `primaryPackagePurpose` field. For CycloneDX, this is the value for the `type` field.
1054
1055 #### `scope`
1056
1057 - Default: the scope of the current project, if any, or ""
1058 - Type: String
1059
1060 Associate an operation with a scope for a scoped registry.
1061
1062 Useful when logging in to or out of a private registry:
1063
1064 ```
1065 # log in, linking the scope to the custom registry
1066 npm login --scope=@mycorp --registry=https://registry.mycorp.com
1067
1068 # log out, removing the link and the auth token
1069 npm logout --scope=@mycorp
1070 ```
1071
1072 This will cause `@mycorp` to be mapped to the registry for future installation of packages specified according to the pattern `@mycorp/package`.
1073
1074 This will also cause `npm init` to create a scoped package.
1075
1076 ```
1077 # accept all defaults, and create a package named "@foo/whatever",
1078 # instead of just named "whatever"
1079 npm init --scope=@foo --yes
1080 ```
1081
1082 #### `script-shell`
1083
1084 - Default: '/bin/sh' on POSIX systems, 'cmd.exe' on Windows
1085 - Type: null or String
1086
1087 The shell to use for scripts run with the `npm exec`, `npm run` and `npm init <package-spec>` commands.
1088
1089 #### `searchexclude`
1090
1091 - Default: ""
1092 - Type: String
1093
1094 Space-separated options that limit the results from search.
1095
1096 #### `searchlimit`
1097
1098 - Default: 20
1099 - Type: Number
1100
1101 Number of items to limit search results to. Will not apply at all to legacy searches.
1102
1103 #### `searchopts`
1104
1105 - Default: ""
1106 - Type: String
1107
1108 Space-separated options that are always passed to search.
1109
1110 #### `searchstaleness`
1111
1112 - Default: 900
1113 - Type: Number
1114
1115 The age of the cache, in seconds, before another registry request is made if using legacy search endpoint.
1116
1117 #### `shell`
1118
1119 - Default: SHELL environment variable, or "bash" on Posix, or "cmd.exe" on Windows
1120 - Type: String
1121
1122 The shell to run for the `npm explore` command.
1123
1124 #### `sign-git-commit`
1125
1126 - Default: false
1127 - Type: Boolean
1128
1129 If set to true, then the `npm version` command will commit the new package version using `-S` to add a signature.
1130
1131 Note that git requires you to have set up GPG keys in your git configs for this to work properly.
1132
1133 #### `sign-git-tag`
1134
1135 - Default: false
1136 - Type: Boolean
1137
1138 If set to true, then the `npm version` command will tag the version using `-s` to add a signature.
1139
1140 Note that git requires you to have set up GPG keys in your git configs for this to work properly.
1141
1142 #### `strict-peer-deps`
1143
1144 - Default: false
1145 - Type: Boolean
1146
1147 If set to `true`, and `--legacy-peer-deps` is not set, then _any_ conflicting `peerDependencies` will be treated as an install failure, even if npm could reasonably guess the appropriate resolution based on non-peer dependency relationships.
1148
1149 By default, conflicting `peerDependencies` deep in the dependency graph will be resolved using the nearest non-peer dependency specification, even if doing so will result in some packages receiving a peer dependency outside the range set in their package's `peerDependencies` object.
1150
1151 When such an override is performed, a warning is printed, explaining the conflict and the packages involved. If `--strict-peer-deps` is set, then this warning is treated as a failure.
1152
1153 #### `strict-ssl`
1154
1155 - Default: true
1156 - Type: Boolean
1157
1158 Whether or not to do SSL key validation when making requests to the registry via https.
1159
1160 See also the `ca` config.
1161
1162 #### `tag`
1163
1164 - Default: "latest"
1165 - Type: String
1166
1167 If you ask npm to install a package and don't tell it a specific version, then it will install the specified tag.
1168
1169 It is the tag added to the package@version specified in the `npm dist-tag add` command, if no explicit tag is given.
1170
1171 When used by the `npm diff` command, this is the tag used to fetch the tarball that will be compared with the local files by default.
1172
1173 If used in the `npm publish` command, this is the tag that will be added to the package submitted to the registry.
1174
1175 #### `tag-version-prefix`
1176
1177 - Default: "v"
1178 - Type: String
1179
1180 If set, alters the prefix used when tagging a new version when performing a version increment using `npm version`. To remove the prefix altogether, set it to the empty string: `""`.
1181
1182 Because other tools may rely on the convention that npm version tags look like `v1.0.0`, _only use this property if it is absolutely necessary_. In particular, use care when overriding this setting for public packages.
1183
1184 #### `timing`
1185
1186 - Default: false
1187 - Type: Boolean
1188
1189 If true, writes timing information to a process specific json file in the cache or `logs-dir`. The file name ends with `-timing.json`.
1190
1191 You can quickly view it with this [json](https://npm.im/json) command line: `cat ~/.npm/_logs/*-timing.json | npm exec -- json -g`.
1192
1193 Timing information will also be reported in the terminal. To suppress this while still writing the timing file, use `--silent`.
1194
1195 #### `umask`
1196
1197 - Default: 0
1198 - Type: Octal numeric string in range 0000..0777 (0..511)
1199
1200 The "umask" value to use when setting the file creation mode on files and folders.
1201
1202 Folders and executables are given a mode which is `0o777` masked against this value. Other files are given a mode which is `0o666` masked against this value.
1203
1204 Note that the underlying system will _also_ apply its own umask value to files and folders that are created, and npm does not circumvent this, but rather adds the `--umask` config to it.
1205
1206 Thus, the effective default umask value on most POSIX systems is 0o22, meaning that folders and executables are created with a mode of 0o755 and other files are created with a mode of 0o644.
1207
1208 #### `unicode`
1209
1210 - Default: false on windows, true on mac/unix systems with a unicode locale, as defined by the `LC_ALL`, `LC_CTYPE`, or `LANG` environment variables.
1211 - Type: Boolean
1212
1213 When set to true, npm uses unicode characters in the tree output. When false, it uses ascii characters instead of unicode glyphs.
1214
1215 #### `update-notifier`
1216
1217 - Default: true
1218 - Type: Boolean
1219
1220 Set to false to suppress the update notification when using an older version of npm than the latest.
1221
1222 #### `usage`
1223
1224 - Default: false
1225 - Type: Boolean
1226
1227 Show short usage output about the command specified.
1228
1229 #### `user-agent`
1230
1231 - Default: "npm/\{npm-version\} node/\{node-version\} \{platform\} \{arch\} workspaces/\{workspaces\} \{ci\}"
1232 - Type: String
1233
1234 Sets the User-Agent request header. The following fields are replaced with their actual counterparts:
1235
1236 - `{npm-version}` - The npm version in use
1237 - `{node-version}` - The Node.js version in use
1238 - `{platform}` - The value of `process.platform`
1239 - `{arch}` - The value of `process.arch`
1240 - `{workspaces}` - Set to `true` if the `workspaces` or `workspace` options are set.
1241 - `{ci}` - The value of the `ci-name` config, if set, prefixed with `ci/`, or an empty string if `ci-name` is empty.
1242
1243 #### `userconfig`
1244
1245 - Default: "~/.npmrc"
1246 - Type: Path
1247
1248 The location of user-level configuration settings.
1249
1250 This may be overridden by the `npm_config_userconfig` environment variable or the `--userconfig` command line option, but may _not_ be overridden by settings in the `globalconfig` file.
1251
1252 #### `version`
1253
1254 - Default: false
1255 - Type: Boolean
1256
1257 If true, output the npm version and exit successfully.
1258
1259 Only relevant when specified explicitly on the command line.
1260
1261 #### `versions`
1262
1263 - Default: false
1264 - Type: Boolean
1265
1266 If true, output the npm version as well as node's `process.versions` map and the version in the current working directory's `package.json` file if one exists, and exit successfully.
1267
1268 Only relevant when specified explicitly on the command line.
1269
1270 #### `viewer`
1271
1272 - Default: "man" on Posix, "browser" on Windows
1273 - Type: String
1274
1275 The program to use to view help content.
1276
1277 Set to `"browser"` to view html help content in the default web browser.
1278
1279 #### `which`
1280
1281 - Default: null
1282 - Type: null or Number
1283
1284 If there are multiple funding sources, which 1-indexed source URL to open.
1285
1286 #### `workspace`
1287
1288 - Default:
1289 - Type: String (can be set multiple times)
1290
1291 Enable running a command in the context of the configured workspaces of the current project while filtering by running only the workspaces defined by this configuration option.
1292
1293 Valid values for the `workspace` config are either:
1294
1295 - Workspace names
1296 - Path to a workspace directory
1297 - Path to a parent workspace directory (will result in selecting all workspaces within that folder)
1298
1299 When set for the `npm init` command, this may be set to the folder of a workspace which does not yet exist, to create the folder and set it up as a brand new workspace within the project.
1300
1301 This value is not exported to the environment for child processes.
1302
1303 #### `workspaces`
1304
1305 - Default: null
1306 - Type: null or Boolean
1307
1308 Set to true to run the command in the context of **all** configured workspaces.
1309
1310 Explicitly setting this to false will cause commands like `install` to ignore workspaces altogether. When not set explicitly:
1311
1312 - Commands that operate on the `node_modules` tree (install, update, etc.) will link workspaces into the `node_modules` folder. - Commands that do other things (test, exec, publish, etc.) will operate on the root project, _unless_ one or more workspaces are specified in the `workspace` config.
1313
1314 This value is not exported to the environment for child processes.
1315
1316 #### `workspaces-update`
1317
1318 - Default: true
1319 - Type: Boolean
1320
1321 If set to true, the npm cli will run an update after operations that may possibly change the workspaces installed to the `node_modules` folder.
1322
1323 #### `yes`
1324
1325 - Default: null
1326 - Type: null or Boolean
1327
1328 Automatically answer "yes" to any prompts that npm might print on the command line.
1329
1330 #### `also`
1331
1332 - Default: null
1333 - Type: null, "dev", or "development"
1334 - DEPRECATED: Please use --include=dev instead.
1335
1336 When set to `dev` or `development`, this is an alias for `--include=dev`.
1337
1338 #### `cache-max`
1339
1340 - Default: Infinity
1341 - Type: Number
1342 - DEPRECATED: This option has been deprecated in favor of `--prefer-online`
1343
1344 `--cache-max=0` is an alias for `--prefer-online`
1345
1346 #### `cache-min`
1347
1348 - Default: 0
1349 - Type: Number
1350 - DEPRECATED: This option has been deprecated in favor of `--prefer-offline`.
1351
1352 `--cache-min=9999 (or bigger)` is an alias for `--prefer-offline`.
1353
1354 #### `cert`
1355
1356 - Default: null
1357 - Type: null or String
1358 - DEPRECATED: `key` and `cert` are no longer used for most registry operations. Use registry scoped `keyfile` and `certfile` instead. Example: //other-registry.tld/:keyfile=/path/to/key.pem //other-registry.tld/:certfile=/path/to/cert.crt
1359
1360 A client certificate to pass when accessing the registry. Values should be in PEM format (Windows calls it "Base-64 encoded X.509 (.CER)") with newlines replaced by the string "\n". For example:
1361
1362 ```ini
1363 cert="-----BEGIN CERTIFICATE-----\nXXXX\nXXXX\n-----END CERTIFICATE-----"
1364 ```
1365
1366 It is _not_ the path to a certificate file, though you can set a registry-scoped "certfile" path like "//other-registry.tld/:certfile=/path/to/cert.pem".
1367
1368 #### `dev`
1369
1370 - Default: false
1371 - Type: Boolean
1372 - DEPRECATED: Please use --include=dev instead.
1373
1374 Alias for `--include=dev`.
1375
1376 #### `global-style`
1377
1378 - Default: false
1379 - Type: Boolean
1380 - DEPRECATED: This option has been deprecated in favor of `--install-strategy=shallow`
1381
1382 Only install direct dependencies in the top level `node_modules`, but hoist on deeper dependencies. Sets `--install-strategy=shallow`.
1383
1384 #### `init.author.email`
1385
1386 - Default: ""
1387 - Type: String
1388 - DEPRECATED: Use `--init-author-email` instead.
1389
1390 Alias for `--init-author-email`
1391
1392 #### `init.author.name`
1393
1394 - Default: ""
1395 - Type: String
1396 - DEPRECATED: Use `--init-author-name` instead.
1397
1398 Alias for `--init-author-name`
1399
1400 #### `init.author.url`
1401
1402 - Default: ""
1403 - Type: "" or URL
1404 - DEPRECATED: Use `--init-author-url` instead.
1405
1406 Alias for `--init-author-url`
1407
1408 #### `init.license`
1409
1410 - Default: "ISC"
1411 - Type: String
1412 - DEPRECATED: Use `--init-license` instead.
1413
1414 Alias for `--init-license`
1415
1416 #### `init.module`
1417
1418 - Default: "~/.npm-init.js"
1419 - Type: Path
1420 - DEPRECATED: Use `--init-module` instead.
1421
1422 Alias for `--init-module`
1423
1424 #### `init.version`
1425
1426 - Default: "1.0.0"
1427 - Type: SemVer string
1428 - DEPRECATED: Use `--init-version` instead.
1429
1430 Alias for `--init-version`
1431
1432 #### `key`
1433
1434 - Default: null
1435 - Type: null or String
1436 - DEPRECATED: `key` and `cert` are no longer used for most registry operations. Use registry scoped `keyfile` and `certfile` instead. Example: //other-registry.tld/:keyfile=/path/to/key.pem //other-registry.tld/:certfile=/path/to/cert.crt
1437
1438 A client key to pass when accessing the registry. Values should be in PEM format with newlines replaced by the string "\n". For example:
1439
1440 ```ini
1441 key="-----BEGIN PRIVATE KEY-----\nXXXX\nXXXX\n-----END PRIVATE KEY-----"
1442 ```
1443
1444 It is _not_ the path to a key file, though you can set a registry-scoped "keyfile" path like "//other-registry.tld/:keyfile=/path/to/key.pem".
1445
1446 #### `legacy-bundling`
1447
1448 - Default: false
1449 - Type: Boolean
1450 - DEPRECATED: This option has been deprecated in favor of `--install-strategy=nested`
1451
1452 Instead of hoisting package installs in `node_modules`, install packages in the same manner that they are depended on. This may cause very deep directory structures and duplicate package installs as there is no de-duplicating. Sets `--install-strategy=nested`.
1453
1454 #### `only`
1455
1456 - Default: null
1457 - Type: null, "prod", or "production"
1458 - DEPRECATED: Use `--omit=dev` to omit dev dependencies from the install.
1459
1460 When set to `prod` or `production`, this is an alias for `--omit=dev`.
1461
1462 #### `optional`
1463
1464 - Default: null
1465 - Type: null or Boolean
1466 - DEPRECATED: Use `--omit=optional` to exclude optional dependencies, or `--include=optional` to include them.
1467
1468 Default value does install optional deps unless otherwise omitted.
1469
1470 Alias for --include=optional or --omit=optional
1471
1472 #### `production`
1473
1474 - Default: null
1475 - Type: null or Boolean
1476 - DEPRECATED: Use `--omit=dev` instead.
1477
1478 Alias for `--omit=dev`
1479
1480 #### `shrinkwrap`
1481
1482 - Default: true
1483 - Type: Boolean
1484 - DEPRECATED: Use the --package-lock setting instead.
1485
1486 Alias for --package-lock
1487
1488 ### See also
1489
1490 - [npm config](/cli/v11/commands/npm-config)
1491 - [npmrc](/cli/v11/configuring-npm/npmrc)
1492 - [npm scripts](/cli/v11/using-npm/scripts)
1493 - [npm folders](/cli/v11/configuring-npm/folders)
1494 - [npm](/cli/v11/commands/npm)