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