The data contained in this repository can be downloaded to your computer using one of several clients.
Please see the documentation of your version control software client for more information.

Please select the desired protocol below to get the URL.

This URL has Read-Only access.

Statistics
| Branch: | Revision:

main_repo / deps / npm / man / man1 / config.1 @ 5aef65a9

History | View | Annotate | Download (24.1 KB)

1
.\" Generated with Ronnjs 0.3.8
2
.\" http://github.com/kapouer/ronnjs/
3
.
4
.TH "NPM\-CONFIG" "1" "February 2013" "" ""
5
.
6
.SH "NAME"
7
\fBnpm-config\fR \-\- Manage the npm configuration file
8
.
9
.SH "SYNOPSIS"
10
.
11
.nf
12
npm config set <key> <value> [\-\-global]
13
npm config get <key>
14
npm config delete <key>
15
npm config list
16
npm config edit
17
npm get <key>
18
npm set <key> <value> [\-\-global]
19
.
20
.fi
21
.
22
.SH "DESCRIPTION"
23
npm gets its configuration values from 6 sources, in this priority:
24
.
25
.SS "Command Line Flags"
26
Putting \fB\-\-foo bar\fR on the command line sets the \fBfoo\fR configuration parameter to \fB"bar"\fR\|\.  A \fB\-\-\fR argument tells the cli
27
parser to stop reading flags\.  A \fB\-\-flag\fR parameter that is at the \fIend\fR of
28
the command will be given the value of \fBtrue\fR\|\.
29
.
30
.SS "Environment Variables"
31
Any environment variables that start with \fBnpm_config_\fR will be interpreted
32
as a configuration parameter\.  For example, putting \fBnpm_config_foo=bar\fR in
33
your environment will set the \fBfoo\fR configuration parameter to \fBbar\fR\|\.  Any
34
environment configurations that are not given a value will be given the value
35
of \fBtrue\fR\|\.  Config values are case\-insensitive, so \fBNPM_CONFIG_FOO=bar\fR will
36
work the same\.
37
.
38
.SS "Per\-user config file"
39
\fB$HOME/\.npmrc\fR (or the \fBuserconfig\fR param, if set above)
40
.
41
.P
42
This file is an ini\-file formatted list of \fBkey = value\fR parameters\.
43
.
44
.SS "Global config file"
45
\fB$PREFIX/etc/npmrc\fR (or the \fBglobalconfig\fR param, if set above):
46
This file is an ini\-file formatted list of \fBkey = value\fR parameters
47
.
48
.SS "Built\-in config file"
49
\fBpath/to/npm/itself/npmrc\fR
50
.
51
.P
52
This is an unchangeable "builtin"
53
configuration file that npm keeps consistent across updates\.  Set
54
fields in here using the \fB\|\./configure\fR script that comes with npm\.
55
This is primarily for distribution maintainers to override default
56
configs in a standard and consistent manner\.
57
.
58
.SS "Default Configs"
59
A set of configuration parameters that are internal to npm, and are
60
defaults if nothing else is specified\.
61
.
62
.SH "Sub\-commands"
63
Config supports the following sub\-commands:
64
.
65
.SS "set"
66
.
67
.nf
68
npm config set key value
69
.
70
.fi
71
.
72
.P
73
Sets the config key to the value\.
74
.
75
.P
76
If value is omitted, then it sets it to "true"\.
77
.
78
.SS "get"
79
.
80
.nf
81
npm config get key
82
.
83
.fi
84
.
85
.P
86
Echo the config value to stdout\.
87
.
88
.SS "list"
89
.
90
.nf
91
npm config list
92
.
93
.fi
94
.
95
.P
96
Show all the config settings\.
97
.
98
.SS "delete"
99
.
100
.nf
101
npm config delete key
102
.
103
.fi
104
.
105
.P
106
Deletes the key from all configuration files\.
107
.
108
.SS "edit"
109
.
110
.nf
111
npm config edit
112
.
113
.fi
114
.
115
.P
116
Opens the config file in an editor\.  Use the \fB\-\-global\fR flag to edit the
117
global config\.
118
.
119
.SH "Shorthands and Other CLI Niceties"
120
The following shorthands are parsed on the command\-line:
121
.
122
.IP "\(bu" 4
123
\fB\-v\fR: \fB\-\-version\fR
124
.
125
.IP "\(bu" 4
126
\fB\-h\fR, \fB\-?\fR, \fB\-\-help\fR, \fB\-H\fR: \fB\-\-usage\fR
127
.
128
.IP "\(bu" 4
129
\fB\-s\fR, \fB\-\-silent\fR: \fB\-\-loglevel silent\fR
130
.
131
.IP "\(bu" 4
132
\fB\-q\fR, \fB\-\-quiet\fR: \fB\-\-loglevel warn\fR
133
.
134
.IP "\(bu" 4
135
\fB\-d\fR: \fB\-\-loglevel info\fR
136
.
137
.IP "\(bu" 4
138
\fB\-dd\fR, \fB\-\-verbose\fR: \fB\-\-loglevel verbose\fR
139
.
140
.IP "\(bu" 4
141
\fB\-ddd\fR: \fB\-\-loglevel silly\fR
142
.
143
.IP "\(bu" 4
144
\fB\-g\fR: \fB\-\-global\fR
145
.
146
.IP "\(bu" 4
147
\fB\-l\fR: \fB\-\-long\fR
148
.
149
.IP "\(bu" 4
150
\fB\-m\fR: \fB\-\-message\fR
151
.
152
.IP "\(bu" 4
153
\fB\-p\fR, \fB\-\-porcelain\fR: \fB\-\-parseable\fR
154
.
155
.IP "\(bu" 4
156
\fB\-reg\fR: \fB\-\-registry\fR
157
.
158
.IP "\(bu" 4
159
\fB\-v\fR: \fB\-\-version\fR
160
.
161
.IP "\(bu" 4
162
\fB\-f\fR: \fB\-\-force\fR
163
.
164
.IP "\(bu" 4
165
\fB\-desc\fR: \fB\-\-description\fR
166
.
167
.IP "\(bu" 4
168
\fB\-S\fR: \fB\-\-save\fR
169
.
170
.IP "\(bu" 4
171
\fB\-D\fR: \fB\-\-save\-dev\fR
172
.
173
.IP "\(bu" 4
174
\fB\-O\fR: \fB\-\-save\-optional\fR
175
.
176
.IP "\(bu" 4
177
\fB\-B\fR: \fB\-\-save\-bundle\fR
178
.
179
.IP "\(bu" 4
180
\fB\-y\fR: \fB\-\-yes\fR
181
.
182
.IP "\(bu" 4
183
\fB\-n\fR: \fB\-\-yes false\fR
184
.
185
.IP "\(bu" 4
186
\fBll\fR and \fBla\fR commands: \fBls \-\-long\fR
187
.
188
.IP "" 0
189
.
190
.P
191
If the specified configuration param resolves unambiguously to a known
192
configuration parameter, then it is expanded to that configuration
193
parameter\.  For example:
194
.
195
.IP "" 4
196
.
197
.nf
198
npm ls \-\-par
199
# same as:
200
npm ls \-\-parseable
201
.
202
.fi
203
.
204
.IP "" 0
205
.
206
.P
207
If multiple single\-character shorthands are strung together, and the
208
resulting combination is unambiguously not some other configuration
209
param, then it is expanded to its various component pieces\.  For
210
example:
211
.
212
.IP "" 4
213
.
214
.nf
215
npm ls \-gpld
216
# same as:
217
npm ls \-\-global \-\-parseable \-\-long \-\-loglevel info
218
.
219
.fi
220
.
221
.IP "" 0
222
.
223
.SH "Per\-Package Config Settings"
224
When running scripts (see \fBnpm help scripts\fR)
225
the package\.json "config" keys are overwritten in the environment if
226
there is a config param of \fB<name>[@<version>]:<key>\fR\|\.  For example, if
227
the package\.json has this:
228
.
229
.IP "" 4
230
.
231
.nf
232
{ "name" : "foo"
233
, "config" : { "port" : "8080" }
234
, "scripts" : { "start" : "node server\.js" } }
235
.
236
.fi
237
.
238
.IP "" 0
239
.
240
.P
241
and the server\.js is this:
242
.
243
.IP "" 4
244
.
245
.nf
246
http\.createServer(\.\.\.)\.listen(process\.env\.npm_package_config_port)
247
.
248
.fi
249
.
250
.IP "" 0
251
.
252
.P
253
then the user could change the behavior by doing:
254
.
255
.IP "" 4
256
.
257
.nf
258
npm config set foo:port 80
259
.
260
.fi
261
.
262
.IP "" 0
263
.
264
.SH "Config Settings"
265
.
266
.SS "always\-auth"
267
.
268
.IP "\(bu" 4
269
Default: false
270
.
271
.IP "\(bu" 4
272
Type: Boolean
273
.
274
.IP "" 0
275
.
276
.P
277
Force npm to always require authentication when accessing the registry,
278
even for \fBGET\fR requests\.
279
.
280
.SS "bin\-links"
281
.
282
.IP "\(bu" 4
283
Default: \fBtrue\fR
284
.
285
.IP "\(bu" 4
286
Type: Boolean
287
.
288
.IP "" 0
289
.
290
.P
291
Tells npm to create symlinks (or \fB\|\.cmd\fR shims on Windows) for package
292
executables\.
293
.
294
.P
295
Set to false to have it not do this\.  This can be used to work around
296
the fact that some file systems don\'t support symlinks, even on
297
ostensibly Unix systems\.
298
.
299
.SS "browser"
300
.
301
.IP "\(bu" 4
302
Default: OS X: \fB"open"\fR, others: \fB"google\-chrome"\fR
303
.
304
.IP "\(bu" 4
305
Type: String
306
.
307
.IP "" 0
308
.
309
.P
310
The browser that is called by the \fBnpm docs\fR command to open websites\.
311
.
312
.SS "ca"
313
.
314
.IP "\(bu" 4
315
Default: The npm CA certificate
316
.
317
.IP "\(bu" 4
318
Type: String or null
319
.
320
.IP "" 0
321
.
322
.P
323
The Certificate Authority signing certificate that is trusted for SSL
324
connections to the registry\.
325
.
326
.P
327
Set to \fBnull\fR to only allow "known" registrars, or to a specific CA cert
328
to trust only that specific signing authority\.
329
.
330
.P
331
See also the \fBstrict\-ssl\fR config\.
332
.
333
.SS "cache"
334
.
335
.IP "\(bu" 4
336
Default: Windows: \fB%APPDATA%\\npm\-cache\fR, Posix: \fB~/\.npm\fR
337
.
338
.IP "\(bu" 4
339
Type: path
340
.
341
.IP "" 0
342
.
343
.P
344
The location of npm\'s cache directory\.  See \fBnpm help cache\fR
345
.
346
.SS "cache\-lock\-stale"
347
.
348
.IP "\(bu" 4
349
Default: 60000 (1 minute)
350
.
351
.IP "\(bu" 4
352
Type: Number
353
.
354
.IP "" 0
355
.
356
.P
357
The number of ms before cache folder lockfiles are considered stale\.
358
.
359
.SS "cache\-lock\-retries"
360
.
361
.IP "\(bu" 4
362
Default: 10
363
.
364
.IP "\(bu" 4
365
Type: Number
366
.
367
.IP "" 0
368
.
369
.P
370
Number of times to retry to acquire a lock on cache folder lockfiles\.
371
.
372
.SS "cache\-lock\-wait"
373
.
374
.IP "\(bu" 4
375
Default: 10000 (10 seconds)
376
.
377
.IP "\(bu" 4
378
Type: Number
379
.
380
.IP "" 0
381
.
382
.P
383
Number of ms to wait for cache lock files to expire\.
384
.
385
.SS "cache\-max"
386
.
387
.IP "\(bu" 4
388
Default: Infinity
389
.
390
.IP "\(bu" 4
391
Type: Number
392
.
393
.IP "" 0
394
.
395
.P
396
The maximum time (in seconds) to keep items in the registry cache before
397
re\-checking against the registry\.
398
.
399
.P
400
Note that no purging is done unless the \fBnpm cache clean\fR command is
401
explicitly used, and that only GET requests use the cache\.
402
.
403
.SS "cache\-min"
404
.
405
.IP "\(bu" 4
406
Default: 10
407
.
408
.IP "\(bu" 4
409
Type: Number
410
.
411
.IP "" 0
412
.
413
.P
414
The minimum time (in seconds) to keep items in the registry cache before
415
re\-checking against the registry\.
416
.
417
.P
418
Note that no purging is done unless the \fBnpm cache clean\fR command is
419
explicitly used, and that only GET requests use the cache\.
420
.
421
.SS "color"
422
.
423
.IP "\(bu" 4
424
Default: true on Posix, false on Windows
425
.
426
.IP "\(bu" 4
427
Type: Boolean or \fB"always"\fR
428
.
429
.IP "" 0
430
.
431
.P
432
If false, never shows colors\.  If \fB"always"\fR then always shows colors\.
433
If true, then only prints color codes for tty file descriptors\.
434
.
435
.SS "coverage"
436
.
437
.IP "\(bu" 4
438
Default: false
439
.
440
.IP "\(bu" 4
441
Type: Boolean
442
.
443
.IP "" 0
444
.
445
.P
446
A flag to tell test\-harness to run with their coverage options enabled,
447
if they respond to the \fBnpm_config_coverage\fR environment variable\.
448
.
449
.SS "depth"
450
.
451
.IP "\(bu" 4
452
Default: Infinity
453
.
454
.IP "\(bu" 4
455
Type: Number
456
.
457
.IP "" 0
458
.
459
.P
460
The depth to go when recursing directories for \fBnpm ls\fR and \fBnpm cache ls\fR\|\.
461
.
462
.SS "description"
463
.
464
.IP "\(bu" 4
465
Default: true
466
.
467
.IP "\(bu" 4
468
Type: Boolean
469
.
470
.IP "" 0
471
.
472
.P
473
Show the description in \fBnpm search\fR
474
.
475
.SS "dev"
476
.
477
.IP "\(bu" 4
478
Default: false
479
.
480
.IP "\(bu" 4
481
Type: Boolean
482
.
483
.IP "" 0
484
.
485
.P
486
Install \fBdev\-dependencies\fR along with packages\.
487
.
488
.P
489
Note that \fBdev\-dependencies\fR are also installed if the \fBnpat\fR flag is
490
set\.
491
.
492
.SS "editor"
493
.
494
.IP "\(bu" 4
495
Default: \fBEDITOR\fR environment variable if set, or \fB"vi"\fR on Posix,
496
or \fB"notepad"\fR on Windows\.
497
.
498
.IP "\(bu" 4
499
Type: path
500
.
501
.IP "" 0
502
.
503
.P
504
The command to run for \fBnpm edit\fR or \fBnpm config edit\fR\|\.
505
.
506
.SS "engine\-strict"
507
.
508
.IP "\(bu" 4
509
Default: false
510
.
511
.IP "\(bu" 4
512
Type: Boolean
513
.
514
.IP "" 0
515
.
516
.P
517
If set to true, then npm will stubbornly refuse to install (or even
518
consider installing) any package that claims to not be compatible with
519
the current Node\.js version\.
520
.
521
.SS "force"
522
.
523
.IP "\(bu" 4
524
Default: false
525
.
526
.IP "\(bu" 4
527
Type: Boolean
528
.
529
.IP "" 0
530
.
531
.P
532
Makes various commands more forceful\.
533
.
534
.IP "\(bu" 4
535
lifecycle script failure does not block progress\.
536
.
537
.IP "\(bu" 4
538
publishing clobbers previously published versions\.
539
.
540
.IP "\(bu" 4
541
skips cache when requesting from the registry\.
542
.
543
.IP "\(bu" 4
544
prevents checks against clobbering non\-npm files\.
545
.
546
.IP "" 0
547
.
548
.SS "fetch\-retries"
549
.
550
.IP "\(bu" 4
551
Default: 2
552
.
553
.IP "\(bu" 4
554
Type: Number
555
.
556
.IP "" 0
557
.
558
.P
559
The "retries" config for the \fBretry\fR module to use when fetching
560
packages from the registry\.
561
.
562
.SS "fetch\-retry\-factor"
563
.
564
.IP "\(bu" 4
565
Default: 10
566
.
567
.IP "\(bu" 4
568
Type: Number
569
.
570
.IP "" 0
571
.
572
.P
573
The "factor" config for the \fBretry\fR module to use when fetching
574
packages\.
575
.
576
.SS "fetch\-retry\-mintimeout"
577
.
578
.IP "\(bu" 4
579
Default: 10000 (10 seconds)
580
.
581
.IP "\(bu" 4
582
Type: Number
583
.
584
.IP "" 0
585
.
586
.P
587
The "minTimeout" config for the \fBretry\fR module to use when fetching
588
packages\.
589
.
590
.SS "fetch\-retry\-maxtimeout"
591
.
592
.IP "\(bu" 4
593
Default: 60000 (1 minute)
594
.
595
.IP "\(bu" 4
596
Type: Number
597
.
598
.IP "" 0
599
.
600
.P
601
The "maxTimeout" config for the \fBretry\fR module to use when fetching
602
packages\.
603
.
604
.SS "git"
605
.
606
.IP "\(bu" 4
607
Default: \fB"git"\fR
608
.
609
.IP "\(bu" 4
610
Type: String
611
.
612
.IP "" 0
613
.
614
.P
615
The command to use for git commands\.  If git is installed on the
616
computer, but is not in the \fBPATH\fR, then set this to the full path to
617
the git binary\.
618
.
619
.SS "global"
620
.
621
.IP "\(bu" 4
622
Default: false
623
.
624
.IP "\(bu" 4
625
Type: Boolean
626
.
627
.IP "" 0
628
.
629
.P
630
Operates in "global" mode, so that packages are installed into the \fBprefix\fR folder instead of the current working directory\.  See \fBnpm help folders\fR for more on the differences in behavior\.
631
.
632
.IP "\(bu" 4
633
packages are installed into the \fB{prefix}/lib/node_modules\fR folder, instead of the
634
current working directory\.
635
.
636
.IP "\(bu" 4
637
bin files are linked to \fB{prefix}/bin\fR
638
.
639
.IP "\(bu" 4
640
man pages are linked to \fB{prefix}/share/man\fR
641
.
642
.IP "" 0
643
.
644
.SS "globalconfig"
645
.
646
.IP "\(bu" 4
647
Default: {prefix}/etc/npmrc
648
.
649
.IP "\(bu" 4
650
Type: path
651
.
652
.IP "" 0
653
.
654
.P
655
The config file to read for global config options\.
656
.
657
.SS "globalignorefile"
658
.
659
.IP "\(bu" 4
660
Default: {prefix}/etc/npmignore
661
.
662
.IP "\(bu" 4
663
Type: path
664
.
665
.IP "" 0
666
.
667
.P
668
The config file to read for global ignore patterns to apply to all users
669
and all projects\.
670
.
671
.P
672
If not found, but there is a "gitignore" file in the
673
same directory, then that will be used instead\.
674
.
675
.SS "group"
676
.
677
.IP "\(bu" 4
678
Default: GID of the current process
679
.
680
.IP "\(bu" 4
681
Type: String or Number
682
.
683
.IP "" 0
684
.
685
.P
686
The group to use when running package scripts in global mode as the root
687
user\.
688
.
689
.SS "https\-proxy"
690
.
691
.IP "\(bu" 4
692
Default: the \fBHTTPS_PROXY\fR or \fBhttps_proxy\fR or \fBHTTP_PROXY\fR or \fBhttp_proxy\fR environment variables\.
693
.
694
.IP "\(bu" 4
695
Type: url
696
.
697
.IP "" 0
698
.
699
.P
700
A proxy to use for outgoing https requests\.
701
.
702
.SS "user\-agent"
703
.
704
.IP "\(bu" 4
705
Default: node/{process\.version} {process\.platform} {process\.arch}
706
.
707
.IP "\(bu" 4
708
Type: String
709
.
710
.IP "" 0
711
.
712
.P
713
Sets a User\-Agent to the request header
714
.
715
.SS "ignore"
716
.
717
.IP "\(bu" 4
718
Default: ""
719
.
720
.IP "\(bu" 4
721
Type: string
722
.
723
.IP "" 0
724
.
725
.P
726
A white\-space separated list of glob patterns of files to always exclude
727
from packages when building tarballs\.
728
.
729
.SS "init\-module"
730
.
731
.IP "\(bu" 4
732
Default: ~/\.npm\-init\.js
733
.
734
.IP "\(bu" 4
735
Type: path
736
.
737
.IP "" 0
738
.
739
.P
740
A module that will be loaded by the \fBnpm init\fR command\.  See the
741
documentation for the init\-package\-json \fIhttps://github\.com/isaacs/init\-package\-json\fR module
742
for more information, or npm help init\.
743
.
744
.SS "init\.version"
745
.
746
.IP "\(bu" 4
747
Default: "0\.0\.0"
748
.
749
.IP "\(bu" 4
750
Type: semver
751
.
752
.IP "" 0
753
.
754
.P
755
The value \fBnpm init\fR should use by default for the package version\.
756
.
757
.SS "init\.author\.name"
758
.
759
.IP "\(bu" 4
760
Default: ""
761
.
762
.IP "\(bu" 4
763
Type: String
764
.
765
.IP "" 0
766
.
767
.P
768
The value \fBnpm init\fR should use by default for the package author\'s name\.
769
.
770
.SS "init\.author\.email"
771
.
772
.IP "\(bu" 4
773
Default: ""
774
.
775
.IP "\(bu" 4
776
Type: String
777
.
778
.IP "" 0
779
.
780
.P
781
The value \fBnpm init\fR should use by default for the package author\'s email\.
782
.
783
.SS "init\.author\.url"
784
.
785
.IP "\(bu" 4
786
Default: ""
787
.
788
.IP "\(bu" 4
789
Type: String
790
.
791
.IP "" 0
792
.
793
.P
794
The value \fBnpm init\fR should use by default for the package author\'s homepage\.
795
.
796
.SS "json"
797
.
798
.IP "\(bu" 4
799
Default: false
800
.
801
.IP "\(bu" 4
802
Type: Boolean
803
.
804
.IP "" 0
805
.
806
.P
807
Whether or not to output JSON data, rather than the normal output\.
808
.
809
.P
810
This feature is currently experimental, and the output data structures
811
for many commands is either not implemented in JSON yet, or subject to
812
change\.  Only the output from \fBnpm ls \-\-json\fR is currently valid\.
813
.
814
.SS "link"
815
.
816
.IP "\(bu" 4
817
Default: false
818
.
819
.IP "\(bu" 4
820
Type: Boolean
821
.
822
.IP "" 0
823
.
824
.P
825
If true, then local installs will link if there is a suitable globally
826
installed package\.
827
.
828
.P
829
Note that this means that local installs can cause things to be
830
installed into the global space at the same time\.  The link is only done
831
if one of the two conditions are met:
832
.
833
.IP "\(bu" 4
834
The package is not already installed globally, or
835
.
836
.IP "\(bu" 4
837
the globally installed version is identical to the version that is
838
being installed locally\.
839
.
840
.IP "" 0
841
.
842
.SS "loglevel"
843
.
844
.IP "\(bu" 4
845
Default: "http"
846
.
847
.IP "\(bu" 4
848
Type: String
849
.
850
.IP "\(bu" 4
851
Values: "silent", "win", "error", "warn", "http", "info", "verbose", "silly"
852
.
853
.IP "" 0
854
.
855
.P
856
What level of logs to report\.  On failure, \fIall\fR logs are written to \fBnpm\-debug\.log\fR in the current working directory\.
857
.
858
.P
859
Any logs of a higher level than the setting are shown\.
860
The default is "http", which shows http, warn, and error output\.
861
.
862
.SS "logstream"
863
.
864
.IP "\(bu" 4
865
Default: process\.stderr
866
.
867
.IP "\(bu" 4
868
Type: Stream
869
.
870
.IP "" 0
871
.
872
.P
873
This is the stream that is passed to the npmlog \fIhttps://github\.com/isaacs/npmlog\fR module at run time\.
874
.
875
.P
876
It cannot be set from the command line, but if you are using npm
877
programmatically, you may wish to send logs to somewhere other than
878
stderr\.
879
.
880
.P
881
If the \fBcolor\fR config is set to true, then this stream will receive
882
colored output if it is a TTY\.
883
.
884
.SS "long"
885
.
886
.IP "\(bu" 4
887
Default: false
888
.
889
.IP "\(bu" 4
890
Type: Boolean
891
.
892
.IP "" 0
893
.
894
.P
895
Show extended information in \fBnpm ls\fR
896
.
897
.SS "message"
898
.
899
.IP "\(bu" 4
900
Default: "%s"
901
.
902
.IP "\(bu" 4
903
Type: String
904
.
905
.IP "" 0
906
.
907
.P
908
Commit message which is used by \fBnpm version\fR when creating version commit\.
909
.
910
.P
911
Any "%s" in the message will be replaced with the version number\.
912
.
913
.SS "node\-version"
914
.
915
.IP "\(bu" 4
916
Default: process\.version
917
.
918
.IP "\(bu" 4
919
Type: semver or false
920
.
921
.IP "" 0
922
.
923
.P
924
The node version to use when checking package\'s "engines" hash\.
925
.
926
.SS "npat"
927
.
928
.IP "\(bu" 4
929
Default: false
930
.
931
.IP "\(bu" 4
932
Type: Boolean
933
.
934
.IP "" 0
935
.
936
.P
937
Run tests on installation and report results to the \fBnpaturl\fR\|\.
938
.
939
.SS "npaturl"
940
.
941
.IP "\(bu" 4
942
Default: Not yet implemented
943
.
944
.IP "\(bu" 4
945
Type: url
946
.
947
.IP "" 0
948
.
949
.P
950
The url to report npat test results\.
951
.
952
.SS "onload\-script"
953
.
954
.IP "\(bu" 4
955
Default: false
956
.
957
.IP "\(bu" 4
958
Type: path
959
.
960
.IP "" 0
961
.
962
.P
963
A node module to \fBrequire()\fR when npm loads\.  Useful for programmatic
964
usage\.
965
.
966
.SS "optional"
967
.
968
.IP "\(bu" 4
969
Default: true
970
.
971
.IP "\(bu" 4
972
Type: Boolean
973
.
974
.IP "" 0
975
.
976
.P
977
Attempt to install packages in the \fBoptionalDependencies\fR hash\.  Note
978
that if these packages fail to install, the overall installation
979
process is not aborted\.
980
.
981
.SS "parseable"
982
.
983
.IP "\(bu" 4
984
Default: false
985
.
986
.IP "\(bu" 4
987
Type: Boolean
988
.
989
.IP "" 0
990
.
991
.P
992
Output parseable results from commands that write to
993
standard output\.
994
.
995
.SS "prefix"
996
.
997
.IP "\(bu" 4
998
Default: see npm help folders
999
.
1000
.IP "\(bu" 4
1001
Type: path
1002
.
1003
.IP "" 0
1004
.
1005
.P
1006
The location to install global items\.  If set on the command line, then
1007
it forces non\-global commands to run in the specified folder\.
1008
.
1009
.SS "production"
1010
.
1011
.IP "\(bu" 4
1012
Default: false
1013
.
1014
.IP "\(bu" 4
1015
Type: Boolean
1016
.
1017
.IP "" 0
1018
.
1019
.P
1020
Set to true to run in "production" mode\.
1021
.
1022
.IP "1" 4
1023
devDependencies are not installed at the topmost level when running
1024
local \fBnpm install\fR without any arguments\.
1025
.
1026
.IP "2" 4
1027
Set the NODE_ENV="production" for lifecycle scripts\.
1028
.
1029
.IP "" 0
1030
.
1031
.SS "proprietary\-attribs"
1032
.
1033
.IP "\(bu" 4
1034
Default: true
1035
.
1036
.IP "\(bu" 4
1037
Type: Boolean
1038
.
1039
.IP "" 0
1040
.
1041
.P
1042
Whether or not to include proprietary extended attributes in the
1043
tarballs created by npm\.
1044
.
1045
.P
1046
Unless you are expecting to unpack package tarballs with something other
1047
than npm \-\- particularly a very outdated tar implementation \-\- leave
1048
this as true\.
1049
.
1050
.SS "proxy"
1051
.
1052
.IP "\(bu" 4
1053
Default: \fBHTTP_PROXY\fR or \fBhttp_proxy\fR environment variable, or null
1054
.
1055
.IP "\(bu" 4
1056
Type: url
1057
.
1058
.IP "" 0
1059
.
1060
.P
1061
A proxy to use for outgoing http requests\.
1062
.
1063
.SS "rebuild\-bundle"
1064
.
1065
.IP "\(bu" 4
1066
Default: true
1067
.
1068
.IP "\(bu" 4
1069
Type: Boolean
1070
.
1071
.IP "" 0
1072
.
1073
.P
1074
Rebuild bundled dependencies after installation\.
1075
.
1076
.SS "registry"
1077
.
1078
.IP "\(bu" 4
1079
Default: https://registry\.npmjs\.org/
1080
.
1081
.IP "\(bu" 4
1082
Type: url
1083
.
1084
.IP "" 0
1085
.
1086
.P
1087
The base URL of the npm package registry\.
1088
.
1089
.SS "rollback"
1090
.
1091
.IP "\(bu" 4
1092
Default: true
1093
.
1094
.IP "\(bu" 4
1095
Type: Boolean
1096
.
1097
.IP "" 0
1098
.
1099
.P
1100
Remove failed installs\.
1101
.
1102
.SS "save"
1103
.
1104
.IP "\(bu" 4
1105
Default: false
1106
.
1107
.IP "\(bu" 4
1108
Type: Boolean
1109
.
1110
.IP "" 0
1111
.
1112
.P
1113
Save installed packages to a package\.json file as dependencies\.
1114
.
1115
.P
1116
When used with the \fBnpm rm\fR command, it removes it from the dependencies
1117
hash\.
1118
.
1119
.P
1120
Only works if there is already a package\.json file present\.
1121
.
1122
.SS "save\-bundle"
1123
.
1124
.IP "\(bu" 4
1125
Default: false
1126
.
1127
.IP "\(bu" 4
1128
Type: Boolean
1129
.
1130
.IP "" 0
1131
.
1132
.P
1133
If a package would be saved at install time by the use of \fB\-\-save\fR, \fB\-\-save\-dev\fR, or \fB\-\-save\-optional\fR, then also put it in the \fBbundleDependencies\fR list\.
1134
.
1135
.P
1136
When used with the \fBnpm rm\fR command, it removes it from the
1137
bundledDependencies list\.
1138
.
1139
.SS "save\-dev"
1140
.
1141
.IP "\(bu" 4
1142
Default: false
1143
.
1144
.IP "\(bu" 4
1145
Type: Boolean
1146
.
1147
.IP "" 0
1148
.
1149
.P
1150
Save installed packages to a package\.json file as devDependencies\.
1151
.
1152
.P
1153
When used with the \fBnpm rm\fR command, it removes it from the devDependencies
1154
hash\.
1155
.
1156
.P
1157
Only works if there is already a package\.json file present\.
1158
.
1159
.SS "save\-optional"
1160
.
1161
.IP "\(bu" 4
1162
Default: false
1163
.
1164
.IP "\(bu" 4
1165
Type: Boolean
1166
.
1167
.IP "" 0
1168
.
1169
.P
1170
Save installed packages to a package\.json file as optionalDependencies\.
1171
.
1172
.P
1173
When used with the \fBnpm rm\fR command, it removes it from the devDependencies
1174
hash\.
1175
.
1176
.P
1177
Only works if there is already a package\.json file present\.
1178
.
1179
.SS "searchopts"
1180
.
1181
.IP "\(bu" 4
1182
Default: ""
1183
.
1184
.IP "\(bu" 4
1185
Type: String
1186
.
1187
.IP "" 0
1188
.
1189
.P
1190
Space\-separated options that are always passed to search\.
1191
.
1192
.SS "searchexclude"
1193
.
1194
.IP "\(bu" 4
1195
Default: ""
1196
.
1197
.IP "\(bu" 4
1198
Type: String
1199
.
1200
.IP "" 0
1201
.
1202
.P
1203
Space\-separated options that limit the results from search\.
1204
.
1205
.SS "searchsort"
1206
.
1207
.IP "\(bu" 4
1208
Default: "name"
1209
.
1210
.IP "\(bu" 4
1211
Type: String
1212
.
1213
.IP "\(bu" 4
1214
Values: "name", "\-name", "date", "\-date", "description",
1215
"\-description", "keywords", "\-keywords"
1216
.
1217
.IP "" 0
1218
.
1219
.P
1220
Indication of which field to sort search results by\.  Prefix with a \fB\-\fR
1221
character to indicate reverse sort\.
1222
.
1223
.SS "shell"
1224
.
1225
.IP "\(bu" 4
1226
Default: SHELL environment variable, or "bash" on Posix, or "cmd" on
1227
Windows
1228
.
1229
.IP "\(bu" 4
1230
Type: path
1231
.
1232
.IP "" 0
1233
.
1234
.P
1235
The shell to run for the \fBnpm explore\fR command\.
1236
.
1237
.SS "sign\-git\-tag"
1238
.
1239
.IP "\(bu" 4
1240
Default: false
1241
.
1242
.IP "\(bu" 4
1243
Type: Boolean
1244
.
1245
.IP "" 0
1246
.
1247
.P
1248
If set to true, then the \fBnpm version\fR command will tag the version
1249
using \fB\-s\fR to add a signature\.
1250
.
1251
.P
1252
Note that git requires you to have set up GPG keys in your git configs
1253
for this to work properly\.
1254
.
1255
.SS "strict\-ssl"
1256
.
1257
.IP "\(bu" 4
1258
Default: true
1259
.
1260
.IP "\(bu" 4
1261
Type: Boolean
1262
.
1263
.IP "" 0
1264
.
1265
.P
1266
Whether or not to do SSL key validation when making requests to the
1267
registry via https\.
1268
.
1269
.P
1270
See also the \fBca\fR config\.
1271
.
1272
.SS "tag"
1273
.
1274
.IP "\(bu" 4
1275
Default: latest
1276
.
1277
.IP "\(bu" 4
1278
Type: String
1279
.
1280
.IP "" 0
1281
.
1282
.P
1283
If you ask npm to install a package and don\'t tell it a specific version, then
1284
it will install the specified tag\.
1285
.
1286
.P
1287
Also the tag that is added to the package@version specified by the \fBnpm
1288
tag\fR command, if no explicit tag is given\.
1289
.
1290
.SS "tmp"
1291
.
1292
.IP "\(bu" 4
1293
Default: TMPDIR environment variable, or "/tmp"
1294
.
1295
.IP "\(bu" 4
1296
Type: path
1297
.
1298
.IP "" 0
1299
.
1300
.P
1301
Where to store temporary files and folders\.  All temp files are deleted
1302
on success, but left behind on failure for forensic purposes\.
1303
.
1304
.SS "unicode"
1305
.
1306
.IP "\(bu" 4
1307
Default: true
1308
.
1309
.IP "\(bu" 4
1310
Type: Boolean
1311
.
1312
.IP "" 0
1313
.
1314
.P
1315
When set to true, npm uses unicode characters in the tree output\.  When
1316
false, it uses ascii characters to draw trees\.
1317
.
1318
.SS "unsafe\-perm"
1319
.
1320
.IP "\(bu" 4
1321
Default: false if running as root, true otherwise
1322
.
1323
.IP "\(bu" 4
1324
Type: Boolean
1325
.
1326
.IP "" 0
1327
.
1328
.P
1329
Set to true to suppress the UID/GID switching when running package
1330
scripts\.  If set explicitly to false, then installing as a non\-root user
1331
will fail\.
1332
.
1333
.SS "usage"
1334
.
1335
.IP "\(bu" 4
1336
Default: false
1337
.
1338
.IP "\(bu" 4
1339
Type: Boolean
1340
.
1341
.IP "" 0
1342
.
1343
.P
1344
Set to show short usage output (like the \-H output)
1345
instead of complete help when doing \fBnpm help help\fR\|\.
1346
.
1347
.SS "user"
1348
.
1349
.IP "\(bu" 4
1350
Default: "nobody"
1351
.
1352
.IP "\(bu" 4
1353
Type: String or Number
1354
.
1355
.IP "" 0
1356
.
1357
.P
1358
The UID to set to when running package scripts as root\.
1359
.
1360
.SS "username"
1361
.
1362
.IP "\(bu" 4
1363
Default: null
1364
.
1365
.IP "\(bu" 4
1366
Type: String
1367
.
1368
.IP "" 0
1369
.
1370
.P
1371
The username on the npm registry\.  Set with \fBnpm adduser\fR
1372
.
1373
.SS "userconfig"
1374
.
1375
.IP "\(bu" 4
1376
Default: ~/\.npmrc
1377
.
1378
.IP "\(bu" 4
1379
Type: path
1380
.
1381
.IP "" 0
1382
.
1383
.P
1384
The location of user\-level configuration settings\.
1385
.
1386
.SS "userignorefile"
1387
.
1388
.IP "\(bu" 4
1389
Default: ~/\.npmignore
1390
.
1391
.IP "\(bu" 4
1392
Type: path
1393
.
1394
.IP "" 0
1395
.
1396
.P
1397
The location of a user\-level ignore file to apply to all packages\.
1398
.
1399
.P
1400
If not found, but there is a \.gitignore file in the same directory, then
1401
that will be used instead\.
1402
.
1403
.SS "umask"
1404
.
1405
.IP "\(bu" 4
1406
Default: 022
1407
.
1408
.IP "\(bu" 4
1409
Type: Octal numeric string
1410
.
1411
.IP "" 0
1412
.
1413
.P
1414
The "umask" value to use when setting the file creation mode on files
1415
and folders\.
1416
.
1417
.P
1418
Folders and executables are given a mode which is \fB0777\fR masked against
1419
this value\.  Other files are given a mode which is \fB0666\fR masked against
1420
this value\.  Thus, the defaults are \fB0755\fR and \fB0644\fR respectively\.
1421
.
1422
.SS "version"
1423
.
1424
.IP "\(bu" 4
1425
Default: false
1426
.
1427
.IP "\(bu" 4
1428
Type: boolean
1429
.
1430
.IP "" 0
1431
.
1432
.P
1433
If true, output the npm version and exit successfully\.
1434
.
1435
.P
1436
Only relevant when specified explicitly on the command line\.
1437
.
1438
.SS "versions"
1439
.
1440
.IP "\(bu" 4
1441
Default: false
1442
.
1443
.IP "\(bu" 4
1444
Type: boolean
1445
.
1446
.IP "" 0
1447
.
1448
.P
1449
If true, output the npm version as well as node\'s \fBprocess\.versions\fR
1450
hash, and exit successfully\.
1451
.
1452
.P
1453
Only relevant when specified explicitly on the command line\.
1454
.
1455
.SS "viewer"
1456
.
1457
.IP "\(bu" 4
1458
Default: "man" on Posix, "browser" on Windows
1459
.
1460
.IP "\(bu" 4
1461
Type: path
1462
.
1463
.IP "" 0
1464
.
1465
.P
1466
The program to use to view help content\.
1467
.
1468
.P
1469
Set to \fB"browser"\fR to view html help content in the default web browser\.
1470
.
1471
.SS "yes"
1472
.
1473
.IP "\(bu" 4
1474
Default: null
1475
.
1476
.IP "\(bu" 4
1477
Type: Boolean or null
1478
.
1479
.IP "" 0
1480
.
1481
.P
1482
If set to \fBnull\fR, then prompt the user for responses in some
1483
circumstances\.
1484
.
1485
.P
1486
If set to \fBtrue\fR, then answer "yes" to any prompt\.  If set to \fBfalse\fR
1487
then answer "no" to any prompt\.
1488
.
1489
.SH "SEE ALSO"
1490
.
1491
.IP "\(bu" 4
1492
npm help folders
1493
.
1494
.IP "\(bu" 4
1495
npm help npm
1496
.
1497
.IP "" 0
1498