-
Notifications
You must be signed in to change notification settings - Fork 3.3k
/
Copy pathdefinitions.js.test.cjs
2006 lines (1459 loc) · 57.8 KB
/
definitions.js.test.cjs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/* IMPORTANT
* This snapshot file is auto-generated, but designed for humans.
* It should be checked into source control and tracked carefully.
* Re-generate by setting TAP_SNAPSHOT=1 and running tests.
* Make sure to inspect the output below. Do not ignore changes!
*/
'use strict'
exports[`test/lib/utils/config/definitions.js TAP > all config keys 1`] = `
Array [
"_auth",
"access",
"all",
"allow-same-version",
"also",
"audit",
"audit-level",
"auth-type",
"before",
"bin-links",
"browser",
"ca",
"cache",
"cache-max",
"cache-min",
"cafile",
"call",
"cert",
"ci-name",
"cidr",
"color",
"commit-hooks",
"depth",
"description",
"dev",
"diff",
"diff-ignore-all-space",
"diff-name-only",
"diff-no-prefix",
"diff-dst-prefix",
"diff-src-prefix",
"diff-text",
"diff-unified",
"dry-run",
"editor",
"engine-strict",
"fetch-retries",
"fetch-retry-factor",
"fetch-retry-maxtimeout",
"fetch-retry-mintimeout",
"fetch-timeout",
"force",
"foreground-scripts",
"format-package-lock",
"fund",
"git",
"git-tag-version",
"global",
"global-style",
"globalconfig",
"heading",
"https-proxy",
"if-present",
"ignore-scripts",
"include",
"include-staged",
"include-workspace-root",
"init-author-email",
"init-author-name",
"init-author-url",
"init-license",
"init-module",
"init-version",
"init.author.email",
"init.author.name",
"init.author.url",
"init.license",
"init.module",
"init.version",
"install-links",
"json",
"key",
"legacy-bundling",
"legacy-peer-deps",
"link",
"local-address",
"location",
"lockfile-version",
"loglevel",
"logs-dir",
"logs-max",
"long",
"maxsockets",
"message",
"node-options",
"node-version",
"noproxy",
"npm-version",
"offline",
"omit",
"omit-lockfile-registry-resolved",
"only",
"optional",
"otp",
"package",
"package-lock",
"package-lock-only",
"pack-destination",
"parseable",
"prefer-offline",
"prefer-online",
"prefix",
"preid",
"production",
"progress",
"proxy",
"read-only",
"rebuild-bundle",
"registry",
"replace-registry-host",
"save",
"save-bundle",
"save-dev",
"save-exact",
"save-optional",
"save-peer",
"save-prefix",
"save-prod",
"scope",
"script-shell",
"searchexclude",
"searchlimit",
"searchopts",
"searchstaleness",
"shell",
"shrinkwrap",
"sign-git-commit",
"sign-git-tag",
"sso-poll-frequency",
"sso-type",
"strict-peer-deps",
"strict-ssl",
"tag",
"tag-version-prefix",
"timing",
"tmp",
"umask",
"unicode",
"update-notifier",
"usage",
"user-agent",
"userconfig",
"version",
"versions",
"viewer",
"which",
"workspace",
"workspaces",
"workspaces-update",
"yes",
]
`
exports[`test/lib/utils/config/definitions.js TAP > all config keys that are shared to flatOptions 1`] = `
Array []
`
exports[`test/lib/utils/config/definitions.js TAP > config description for _auth 1`] = `
#### \`_auth\`
* Default: null
* Type: null or String
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"
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\`.
`
exports[`test/lib/utils/config/definitions.js TAP > config description for access 1`] = `
#### \`access\`
* Default: 'restricted' for scoped packages, 'public' for unscoped packages
* Type: null, "restricted", or "public"
When publishing scoped packages, the access level defaults to \`restricted\`.
If you want your scoped package to be publicly viewable (and installable)
set \`--access=public\`. The only valid values for \`access\` are \`public\` and
\`restricted\`. Unscoped packages _always_ have an access level of \`public\`.
Note: Using the \`--access\` flag on the \`npm publish\` command will only set
the package access level on the initial publish of the package. Any
subsequent \`npm publish\` commands using the \`--access\` flag will not have an
effect to the access level. To make changes to the access level after the
initial publish use \`npm access\`.
`
exports[`test/lib/utils/config/definitions.js TAP > config description for all 1`] = `
#### \`all\`
* Default: false
* Type: Boolean
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.
`
exports[`test/lib/utils/config/definitions.js TAP > config description for allow-same-version 1`] = `
#### \`allow-same-version\`
* Default: false
* Type: Boolean
Prevents throwing an error when \`npm version\` is used to set the new version
to the same value as the current version.
`
exports[`test/lib/utils/config/definitions.js TAP > config description for also 1`] = `
#### \`also\`
* Default: null
* Type: null, "dev", or "development"
* DEPRECATED: Please use --include=dev instead.
When set to \`dev\` or \`development\`, this is an alias for \`--include=dev\`.
`
exports[`test/lib/utils/config/definitions.js TAP > config description for audit 1`] = `
#### \`audit\`
* Default: true
* Type: Boolean
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\`](/commands/npm-audit) for details on what is
submitted.
`
exports[`test/lib/utils/config/definitions.js TAP > config description for audit-level 1`] = `
#### \`audit-level\`
* Default: null
* Type: null, "info", "low", "moderate", "high", "critical", or "none"
The minimum level of vulnerability for \`npm audit\` to exit with a non-zero
exit code.
`
exports[`test/lib/utils/config/definitions.js TAP > config description for auth-type 1`] = `
#### \`auth-type\`
* Default: "legacy"
* Type: "legacy", "web", "sso", "saml", "oauth", or "webauthn"
NOTE: auth-type values "sso", "saml", "oauth", and "webauthn" will be
removed in a future version.
What authentication strategy to use with \`login\`.
`
exports[`test/lib/utils/config/definitions.js TAP > config description for before 1`] = `
#### \`before\`
* Default: null
* Type: null or Date
If passed to \`npm install\`, will rebuild the npm tree such that only
versions that were available **on or before** the \`--before\` time get
installed. If there's no versions available for the current set of direct
dependencies, the command will error.
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 \`[email protected]\` even though
\`latest\` is \`2.0\`.
`
exports[`test/lib/utils/config/definitions.js TAP > config description for bin-links 1`] = `
#### \`bin-links\`
* Default: true
* Type: Boolean
Tells npm to create symlinks (or \`.cmd\` shims on Windows) for package
executables.
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.
`
exports[`test/lib/utils/config/definitions.js TAP > config description for browser 1`] = `
#### \`browser\`
* Default: OS X: \`"open"\`, Windows: \`"start"\`, Others: \`"xdg-open"\`
* Type: null, Boolean, or String
The browser that is called by npm commands to open websites.
Set to \`false\` to suppress browser behavior and instead print urls to
terminal.
Set to \`true\` to use default system URL opener.
`
exports[`test/lib/utils/config/definitions.js TAP > config description for ca 1`] = `
#### \`ca\`
* Default: null
* Type: null or String (can be set multiple times)
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:
\`\`\`ini
ca="-----BEGIN CERTIFICATE-----\\nXXXX\\nXXXX\\n-----END CERTIFICATE-----"
\`\`\`
Set to \`null\` to only allow "known" registrars, or to a specific CA cert to
trust only that specific signing authority.
Multiple CAs can be trusted by specifying an array of certificates:
\`\`\`ini
ca[]="..."
ca[]="..."
\`\`\`
See also the \`strict-ssl\` config.
`
exports[`test/lib/utils/config/definitions.js TAP > config description for cache 1`] = `
#### \`cache\`
* Default: Windows: \`%LocalAppData%\\npm-cache\`, Posix: \`~/.npm\`
* Type: Path
The location of npm's cache directory. See [\`npm
cache\`](/commands/npm-cache)
`
exports[`test/lib/utils/config/definitions.js TAP > config description for cache-max 1`] = `
#### \`cache-max\`
* Default: Infinity
* Type: Number
* DEPRECATED: This option has been deprecated in favor of \`--prefer-online\`
\`--cache-max=0\` is an alias for \`--prefer-online\`
`
exports[`test/lib/utils/config/definitions.js TAP > config description for cache-min 1`] = `
#### \`cache-min\`
* Default: 0
* Type: Number
* DEPRECATED: This option has been deprecated in favor of \`--prefer-offline\`.
\`--cache-min=9999 (or bigger)\` is an alias for \`--prefer-offline\`.
`
exports[`test/lib/utils/config/definitions.js TAP > config description for cafile 1`] = `
#### \`cafile\`
* Default: null
* Type: Path
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.
`
exports[`test/lib/utils/config/definitions.js TAP > config description for call 1`] = `
#### \`call\`
* Default: ""
* Type: String
Optional companion option for \`npm exec\`, \`npx\` that allows for specifying a
custom command to be run along with the installed packages.
\`\`\`bash
npm exec --package yo --package generator-node --call "yo node"
\`\`\`
`
exports[`test/lib/utils/config/definitions.js TAP > config description for cert 1`] = `
#### \`cert\`
* Default: null
* Type: null or String
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:
\`\`\`ini
cert="-----BEGIN CERTIFICATE-----\\nXXXX\\nXXXX\\n-----END CERTIFICATE-----"
\`\`\`
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".
`
exports[`test/lib/utils/config/definitions.js TAP > config description for ci-name 1`] = `
#### \`ci-name\`
* Default: The name of the current CI system, or \`null\` when not on a known CI
platform.
* Type: null or String
The name of a continuous integration system. If not set explicitly, npm will
detect the current CI environment using the
[\`@npmcli/ci-detect\`](http://npm.im/@npmcli/ci-detect) module.
`
exports[`test/lib/utils/config/definitions.js TAP > config description for cidr 1`] = `
#### \`cidr\`
* Default: null
* Type: null or String (can be set multiple times)
This is a list of CIDR address to be used when configuring limited access
tokens with the \`npm token create\` command.
`
exports[`test/lib/utils/config/definitions.js TAP > config description for color 1`] = `
#### \`color\`
* Default: true unless the NO_COLOR environ is set to something other than '0'
* Type: "always" or Boolean
If false, never shows colors. If \`"always"\` then always shows colors. If
true, then only prints color codes for tty file descriptors.
`
exports[`test/lib/utils/config/definitions.js TAP > config description for commit-hooks 1`] = `
#### \`commit-hooks\`
* Default: true
* Type: Boolean
Run git commit hooks when using the \`npm version\` command.
`
exports[`test/lib/utils/config/definitions.js TAP > config description for depth 1`] = `
#### \`depth\`
* Default: \`Infinity\` if \`--all\` is set, otherwise \`1\`
* Type: null or Number
The depth to go when recursing packages for \`npm ls\`.
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.
`
exports[`test/lib/utils/config/definitions.js TAP > config description for description 1`] = `
#### \`description\`
* Default: true
* Type: Boolean
Show the description in \`npm search\`
`
exports[`test/lib/utils/config/definitions.js TAP > config description for dev 1`] = `
#### \`dev\`
* Default: false
* Type: Boolean
* DEPRECATED: Please use --include=dev instead.
Alias for \`--include=dev\`.
`
exports[`test/lib/utils/config/definitions.js TAP > config description for diff 1`] = `
#### \`diff\`
* Default:
* Type: String (can be set multiple times)
Define arguments to compare in \`npm diff\`.
`
exports[`test/lib/utils/config/definitions.js TAP > config description for diff-dst-prefix 1`] = `
#### \`diff-dst-prefix\`
* Default: "b/"
* Type: String
Destination prefix to be used in \`npm diff\` output.
`
exports[`test/lib/utils/config/definitions.js TAP > config description for diff-ignore-all-space 1`] = `
#### \`diff-ignore-all-space\`
* Default: false
* Type: Boolean
Ignore whitespace when comparing lines in \`npm diff\`.
`
exports[`test/lib/utils/config/definitions.js TAP > config description for diff-name-only 1`] = `
#### \`diff-name-only\`
* Default: false
* Type: Boolean
Prints only filenames when using \`npm diff\`.
`
exports[`test/lib/utils/config/definitions.js TAP > config description for diff-no-prefix 1`] = `
#### \`diff-no-prefix\`
* Default: false
* Type: Boolean
Do not show any source or destination prefix in \`npm diff\` output.
Note: this causes \`npm diff\` to ignore the \`--diff-src-prefix\` and
\`--diff-dst-prefix\` configs.
`
exports[`test/lib/utils/config/definitions.js TAP > config description for diff-src-prefix 1`] = `
#### \`diff-src-prefix\`
* Default: "a/"
* Type: String
Source prefix to be used in \`npm diff\` output.
`
exports[`test/lib/utils/config/definitions.js TAP > config description for diff-text 1`] = `
#### \`diff-text\`
* Default: false
* Type: Boolean
Treat all files as text in \`npm diff\`.
`
exports[`test/lib/utils/config/definitions.js TAP > config description for diff-unified 1`] = `
#### \`diff-unified\`
* Default: 3
* Type: Number
The number of lines of context to print in \`npm diff\`.
`
exports[`test/lib/utils/config/definitions.js TAP > config description for dry-run 1`] = `
#### \`dry-run\`
* Default: false
* Type: Boolean
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\`.
Note: This is NOT honored by other network related commands, eg \`dist-tags\`,
\`owner\`, etc.
`
exports[`test/lib/utils/config/definitions.js TAP > config description for editor 1`] = `
#### \`editor\`
* Default: The EDITOR or VISUAL environment variables, or 'notepad.exe' on
Windows, or 'vim' on Unix systems
* Type: String
The command to run for \`npm edit\` and \`npm config edit\`.
`
exports[`test/lib/utils/config/definitions.js TAP > config description for engine-strict 1`] = `
#### \`engine-strict\`
* Default: false
* Type: Boolean
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.
This can be overridden by setting the \`--force\` flag.
`
exports[`test/lib/utils/config/definitions.js TAP > config description for fetch-retries 1`] = `
#### \`fetch-retries\`
* Default: 2
* Type: Number
The "retries" config for the \`retry\` module to use when fetching packages
from the registry.
npm will retry idempotent read requests to the registry in the case of
network failures or 5xx HTTP errors.
`
exports[`test/lib/utils/config/definitions.js TAP > config description for fetch-retry-factor 1`] = `
#### \`fetch-retry-factor\`
* Default: 10
* Type: Number
The "factor" config for the \`retry\` module to use when fetching packages.
`
exports[`test/lib/utils/config/definitions.js TAP > config description for fetch-retry-maxtimeout 1`] = `
#### \`fetch-retry-maxtimeout\`
* Default: 60000 (1 minute)
* Type: Number
The "maxTimeout" config for the \`retry\` module to use when fetching
packages.
`
exports[`test/lib/utils/config/definitions.js TAP > config description for fetch-retry-mintimeout 1`] = `
#### \`fetch-retry-mintimeout\`
* Default: 10000 (10 seconds)
* Type: Number
The "minTimeout" config for the \`retry\` module to use when fetching
packages.
`
exports[`test/lib/utils/config/definitions.js TAP > config description for fetch-timeout 1`] = `
#### \`fetch-timeout\`
* Default: 300000 (5 minutes)
* Type: Number
The maximum amount of time to wait for HTTP requests to complete.
`
exports[`test/lib/utils/config/definitions.js TAP > config description for force 1`] = `
#### \`force\`
* Default: false
* Type: Boolean
Removes various protections against unfortunate side effects, common
mistakes, unnecessary performance degradation, and malicious input.
* Allow clobbering non-npm files in global installs.
* Allow the \`npm version\` command to work on an unclean git repository.
* Allow deleting the cache folder with \`npm cache clean\`.
* Allow installing packages that have an \`engines\` declaration requiring a
different version of npm.
* Allow installing packages that have an \`engines\` declaration requiring a
different version of \`node\`, even if \`--engine-strict\` is enabled.
* Allow \`npm audit fix\` to install modules outside your stated dependency
range (including SemVer-major changes).
* Allow unpublishing all versions of a published package.
* Allow conflicting peerDependencies to be installed in the root project.
* Implicitly set \`--yes\` during \`npm init\`.
* Allow clobbering existing values in \`npm pkg\`
* Allow unpublishing of entire packages (not just a single version).
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!
`
exports[`test/lib/utils/config/definitions.js TAP > config description for foreground-scripts 1`] = `
#### \`foreground-scripts\`
* Default: false
* Type: Boolean
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.
Note that this will generally make installs run slower, and be much noisier,
but can be useful for debugging.
`
exports[`test/lib/utils/config/definitions.js TAP > config description for format-package-lock 1`] = `
#### \`format-package-lock\`
* Default: true
* Type: Boolean
Format \`package-lock.json\` or \`npm-shrinkwrap.json\` as a human readable
file.
`
exports[`test/lib/utils/config/definitions.js TAP > config description for fund 1`] = `
#### \`fund\`
* Default: true
* Type: Boolean
When "true" displays the message at the end of each \`npm install\`
acknowledging the number of dependencies looking for funding. See [\`npm
fund\`](/commands/npm-fund) for details.
`
exports[`test/lib/utils/config/definitions.js TAP > config description for git 1`] = `
#### \`git\`
* Default: "git"
* Type: String
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.
`
exports[`test/lib/utils/config/definitions.js TAP > config description for git-tag-version 1`] = `
#### \`git-tag-version\`
* Default: true
* Type: Boolean
Tag the commit when using the \`npm version\` command. Setting this to false
results in no commit being made at all.
`
exports[`test/lib/utils/config/definitions.js TAP > config description for global 1`] = `
#### \`global\`
* Default: false
* Type: Boolean
Operates in "global" mode, so that packages are installed into the \`prefix\`
folder instead of the current working directory. See
[folders](/configuring-npm/folders) for more on the differences in behavior.
* packages are installed into the \`{prefix}/lib/node_modules\` folder, instead
of the current working directory.
* bin files are linked to \`{prefix}/bin\`
* man pages are linked to \`{prefix}/share/man\`
`
exports[`test/lib/utils/config/definitions.js TAP > config description for global-style 1`] = `
#### \`global-style\`
* Default: false
* Type: Boolean
Causes npm to install the package into your local \`node_modules\` folder with
the same layout it uses with the global \`node_modules\` folder. Only your
direct dependencies will show in \`node_modules\` and everything they depend
on will be flattened in their \`node_modules\` folders. This obviously will
eliminate some deduping. If used with \`legacy-bundling\`, \`legacy-bundling\`
will be preferred.
`
exports[`test/lib/utils/config/definitions.js TAP > config description for globalconfig 1`] = `
#### \`globalconfig\`
* Default: The global --prefix setting plus 'etc/npmrc'. For example,
'/usr/local/etc/npmrc'
* Type: Path
The config file to read for global config options.
`
exports[`test/lib/utils/config/definitions.js TAP > config description for heading 1`] = `
#### \`heading\`
* Default: "npm"
* Type: String
The string that starts all the debugging log output.
`
exports[`test/lib/utils/config/definitions.js TAP > config description for https-proxy 1`] = `
#### \`https-proxy\`
* Default: null
* Type: null or URL
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.
`
exports[`test/lib/utils/config/definitions.js TAP > config description for if-present 1`] = `
#### \`if-present\`
* Default: false
* Type: Boolean
If true, npm will not exit with an error code when \`run-script\` 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.
This value is not exported to the environment for child processes.
`
exports[`test/lib/utils/config/definitions.js TAP > config description for ignore-scripts 1`] = `
#### \`ignore-scripts\`
* Default: false
* Type: Boolean
If true, npm does not run scripts specified in package.json files.
Note that commands explicitly intended to run a particular script, such as
\`npm start\`, \`npm stop\`, \`npm restart\`, \`npm test\`, and \`npm run-script\`
will still run their intended script if \`ignore-scripts\` is set, but they
will *not* run any pre- or post-scripts.
`
exports[`test/lib/utils/config/definitions.js TAP > config description for include 1`] = `
#### \`include\`
* Default:
* Type: "prod", "dev", "optional", or "peer" (can be set multiple times)
Option that allows for defining which types of dependencies to install.
This is the inverse of \`--omit=<type>\`.
Dependency types specified in \`--include\` will not be omitted, regardless of
the order in which omit/include are specified on the command-line.
`
exports[`test/lib/utils/config/definitions.js TAP > config description for include-staged 1`] = `
#### \`include-staged\`
* Default: false
* Type: Boolean
Allow installing "staged" published packages, as defined by [npm RFC PR
#92](https://github.com/npm/rfcs/pull/92).
This is experimental, and not implemented by the npm public registry.
`
exports[`test/lib/utils/config/definitions.js TAP > config description for include-workspace-root 1`] = `
#### \`include-workspace-root\`
* Default: false
* Type: Boolean
Include the workspace root when workspaces are enabled for a command.
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.
This value is not exported to the environment for child processes.
`
exports[`test/lib/utils/config/definitions.js TAP > config description for init-author-email 1`] = `
#### \`init-author-email\`
* Default: ""
* Type: String
The value \`npm init\` should use by default for the package author's email.
`
exports[`test/lib/utils/config/definitions.js TAP > config description for init-author-name 1`] = `
#### \`init-author-name\`
* Default: ""
* Type: String
The value \`npm init\` should use by default for the package author's name.
`
exports[`test/lib/utils/config/definitions.js TAP > config description for init-author-url 1`] = `
#### \`init-author-url\`
* Default: ""
* Type: "" or URL
The value \`npm init\` should use by default for the package author's
homepage.
`
exports[`test/lib/utils/config/definitions.js TAP > config description for init-license 1`] = `
#### \`init-license\`
* Default: "ISC"
* Type: String
The value \`npm init\` should use by default for the package license.
`
exports[`test/lib/utils/config/definitions.js TAP > config description for init-module 1`] = `
#### \`init-module\`
* Default: "~/.npm-init.js"
* Type: Path
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](/commands/npm-init).
`
exports[`test/lib/utils/config/definitions.js TAP > config description for init-version 1`] = `
#### \`init-version\`
* Default: "1.0.0"
* Type: SemVer string
The value that \`npm init\` should use by default for the package version
number, if not already set in package.json.
`
exports[`test/lib/utils/config/definitions.js TAP > config description for init.author.email 1`] = `
#### \`init.author.email\`
* Default: ""
* Type: String
* DEPRECATED: Use \`--init-author-email\` instead.
Alias for \`--init-author-email\`
`
exports[`test/lib/utils/config/definitions.js TAP > config description for init.author.name 1`] = `
#### \`init.author.name\`
* Default: ""
* Type: String
* DEPRECATED: Use \`--init-author-name\` instead.
Alias for \`--init-author-name\`
`
exports[`test/lib/utils/config/definitions.js TAP > config description for init.author.url 1`] = `
#### \`init.author.url\`
* Default: ""
* Type: "" or URL
* DEPRECATED: Use \`--init-author-url\` instead.
Alias for \`--init-author-url\`
`
exports[`test/lib/utils/config/definitions.js TAP > config description for init.license 1`] = `
#### \`init.license\`
* Default: "ISC"
* Type: String
* DEPRECATED: Use \`--init-license\` instead.
Alias for \`--init-license\`
`
exports[`test/lib/utils/config/definitions.js TAP > config description for init.module 1`] = `
#### \`init.module\`
* Default: "~/.npm-init.js"
* Type: Path
* DEPRECATED: Use \`--init-module\` instead.
Alias for \`--init-module\`
`
exports[`test/lib/utils/config/definitions.js TAP > config description for init.version 1`] = `
#### \`init.version\`
* Default: "1.0.0"
* Type: SemVer string
* DEPRECATED: Use \`--init-version\` instead.
Alias for \`--init-version\`
`
exports[`test/lib/utils/config/definitions.js TAP > config description for install-links 1`] = `
#### \`install-links\`
* Default: false
* Type: Boolean
When set file: protocol dependencies that exist outside of the project root
will be packed and installed as regular dependencies instead of creating a
symlink. This option has no effect on workspaces.
`
exports[`test/lib/utils/config/definitions.js TAP > config description for json 1`] = `
#### \`json\`
* Default: false
* Type: Boolean
Whether or not to output JSON data, rather than the normal output.