npm: Upgrade to 1.3.19
[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 "cert"
352 .
353 .IP "\(bu" 4
354 Default: \fBnull\fR
355 .
356 .IP "\(bu" 4
357 Type: String
358 .
359 .IP "" 0
360 .
361 .P
362 A client certificate to pass when accessing the registry\.
363 .
364 .SS "color"
365 .
366 .IP "\(bu" 4
367 Default: true on Posix, false on Windows
368 .
369 .IP "\(bu" 4
370 Type: Boolean or \fB"always"\fR
371 .
372 .IP "" 0
373 .
374 .P
375 If false, never shows colors\.  If \fB"always"\fR then always shows colors\.
376 If true, then only prints color codes for tty file descriptors\.
377 .
378 .SS "depth"
379 .
380 .IP "\(bu" 4
381 Default: Infinity
382 .
383 .IP "\(bu" 4
384 Type: Number
385 .
386 .IP "" 0
387 .
388 .P
389 The depth to go when recursing directories for \fBnpm ls\fR and \fBnpm cache ls\fR\|\.
390 .
391 .SS "description"
392 .
393 .IP "\(bu" 4
394 Default: true
395 .
396 .IP "\(bu" 4
397 Type: Boolean
398 .
399 .IP "" 0
400 .
401 .P
402 Show the description in \fBnpm search\fR
403 .
404 .SS "dev"
405 .
406 .IP "\(bu" 4
407 Default: false
408 .
409 .IP "\(bu" 4
410 Type: Boolean
411 .
412 .IP "" 0
413 .
414 .P
415 Install \fBdev\-dependencies\fR along with packages\.
416 .
417 .P
418 Note that \fBdev\-dependencies\fR are also installed if the \fBnpat\fR flag is
419 set\.
420 .
421 .SS "editor"
422 .
423 .IP "\(bu" 4
424 Default: \fBEDITOR\fR environment variable if set, or \fB"vi"\fR on Posix,
425 or \fB"notepad"\fR on Windows\.
426 .
427 .IP "\(bu" 4
428 Type: path
429 .
430 .IP "" 0
431 .
432 .P
433 The command to run for \fBnpm edit\fR or \fBnpm config edit\fR\|\.
434 .
435 .SS "email"
436 The email of the logged\-in user\.
437 .
438 .P
439 Set by the \fBnpm adduser\fR command\.  Should not be set explicitly\.
440 .
441 .SS "engine\-strict"
442 .
443 .IP "\(bu" 4
444 Default: false
445 .
446 .IP "\(bu" 4
447 Type: Boolean
448 .
449 .IP "" 0
450 .
451 .P
452 If set to true, then npm will stubbornly refuse to install (or even
453 consider installing) any package that claims to not be compatible with
454 the current Node\.js version\.
455 .
456 .SS "force"
457 .
458 .IP "\(bu" 4
459 Default: false
460 .
461 .IP "\(bu" 4
462 Type: Boolean
463 .
464 .IP "" 0
465 .
466 .P
467 Makes various commands more forceful\.
468 .
469 .IP "\(bu" 4
470 lifecycle script failure does not block progress\.
471 .
472 .IP "\(bu" 4
473 publishing clobbers previously published versions\.
474 .
475 .IP "\(bu" 4
476 skips cache when requesting from the registry\.
477 .
478 .IP "\(bu" 4
479 prevents checks against clobbering non\-npm files\.
480 .
481 .IP "" 0
482 .
483 .SS "fetch\-retries"
484 .
485 .IP "\(bu" 4
486 Default: 2
487 .
488 .IP "\(bu" 4
489 Type: Number
490 .
491 .IP "" 0
492 .
493 .P
494 The "retries" config for the \fBretry\fR module to use when fetching
495 packages from the registry\.
496 .
497 .SS "fetch\-retry\-factor"
498 .
499 .IP "\(bu" 4
500 Default: 10
501 .
502 .IP "\(bu" 4
503 Type: Number
504 .
505 .IP "" 0
506 .
507 .P
508 The "factor" config for the \fBretry\fR module to use when fetching
509 packages\.
510 .
511 .SS "fetch\-retry\-mintimeout"
512 .
513 .IP "\(bu" 4
514 Default: 10000 (10 seconds)
515 .
516 .IP "\(bu" 4
517 Type: Number
518 .
519 .IP "" 0
520 .
521 .P
522 The "minTimeout" config for the \fBretry\fR module to use when fetching
523 packages\.
524 .
525 .SS "fetch\-retry\-maxtimeout"
526 .
527 .IP "\(bu" 4
528 Default: 60000 (1 minute)
529 .
530 .IP "\(bu" 4
531 Type: Number
532 .
533 .IP "" 0
534 .
535 .P
536 The "maxTimeout" config for the \fBretry\fR module to use when fetching
537 packages\.
538 .
539 .SS "git"
540 .
541 .IP "\(bu" 4
542 Default: \fB"git"\fR
543 .
544 .IP "\(bu" 4
545 Type: String
546 .
547 .IP "" 0
548 .
549 .P
550 The command to use for git commands\.  If git is installed on the
551 computer, but is not in the \fBPATH\fR, then set this to the full path to
552 the git binary\.
553 .
554 .SS "git\-tag\-version"
555 .
556 .IP "\(bu" 4
557 Default: \fBtrue\fR
558 .
559 .IP "\(bu" 4
560 Type: Boolean
561 .
562 .IP "" 0
563 .
564 .P
565 Tag the commit when using the \fBnpm version\fR command\.
566 .
567 .SS "global"
568 .
569 .IP "\(bu" 4
570 Default: false
571 .
572 .IP "\(bu" 4
573 Type: Boolean
574 .
575 .IP "" 0
576 .
577 .P
578 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\.
579 .
580 .IP "\(bu" 4
581 packages are installed into the \fB{prefix}/lib/node_modules\fR folder, instead of the
582 current working directory\.
583 .
584 .IP "\(bu" 4
585 bin files are linked to \fB{prefix}/bin\fR
586 .
587 .IP "\(bu" 4
588 man pages are linked to \fB{prefix}/share/man\fR
589 .
590 .IP "" 0
591 .
592 .SS "globalconfig"
593 .
594 .IP "\(bu" 4
595 Default: {prefix}/etc/npmrc
596 .
597 .IP "\(bu" 4
598 Type: path
599 .
600 .IP "" 0
601 .
602 .P
603 The config file to read for global config options\.
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 "heading"
620 .
621 .IP "\(bu" 4
622 Default: \fB"npm"\fR
623 .
624 .IP "\(bu" 4
625 Type: String
626 .
627 .IP "" 0
628 .
629 .P
630 The string that starts all the debugging log output\.
631 .
632 .SS "https\-proxy"
633 .
634 .IP "\(bu" 4
635 Default: the \fBHTTPS_PROXY\fR or \fBhttps_proxy\fR or \fBHTTP_PROXY\fR or \fBhttp_proxy\fR environment variables\.
636 .
637 .IP "\(bu" 4
638 Type: url
639 .
640 .IP "" 0
641 .
642 .P
643 A proxy to use for outgoing https requests\.
644 .
645 .SS "ignore\-scripts"
646 .
647 .IP "\(bu" 4
648 Default: false
649 .
650 .IP "\(bu" 4
651 Type: Boolean
652 .
653 .IP "" 0
654 .
655 .P
656 If true, npm does not run scripts specified in package\.json files\.
657 .
658 .SS "init\-module"
659 .
660 .IP "\(bu" 4
661 Default: ~/\.npm\-init\.js
662 .
663 .IP "\(bu" 4
664 Type: path
665 .
666 .IP "" 0
667 .
668 .P
669 A module that will be loaded by the \fBnpm init\fR command\.  See the
670 documentation for the init\-package\-json \fIhttps://github\.com/isaacs/init\-package\-json\fR module
671 npm help for more information, or npm\-init\.
672 .
673 .SS "init\.author\.name"
674 .
675 .IP "\(bu" 4
676 Default: ""
677 .
678 .IP "\(bu" 4
679 Type: String
680 .
681 .IP "" 0
682 .
683 .P
684 The value \fBnpm init\fR should use by default for the package author\'s name\.
685 .
686 .SS "init\.author\.email"
687 .
688 .IP "\(bu" 4
689 Default: ""
690 .
691 .IP "\(bu" 4
692 Type: String
693 .
694 .IP "" 0
695 .
696 .P
697 The value \fBnpm init\fR should use by default for the package author\'s email\.
698 .
699 .SS "init\.author\.url"
700 .
701 .IP "\(bu" 4
702 Default: ""
703 .
704 .IP "\(bu" 4
705 Type: String
706 .
707 .IP "" 0
708 .
709 .P
710 The value \fBnpm init\fR should use by default for the package author\'s homepage\.
711 .
712 .SS "init\.license"
713 .
714 .IP "\(bu" 4
715 Default: "BSD\-2\-Clause"
716 .
717 .IP "\(bu" 4
718 Type: String
719 .
720 .IP "" 0
721 .
722 .P
723 The value \fBnpm init\fR should use by default for the package license\.
724 .
725 .SS "json"
726 .
727 .IP "\(bu" 4
728 Default: false
729 .
730 .IP "\(bu" 4
731 Type: Boolean
732 .
733 .IP "" 0
734 .
735 .P
736 Whether or not to output JSON data, rather than the normal output\.
737 .
738 .P
739 This feature is currently experimental, and the output data structures
740 for many commands is either not implemented in JSON yet, or subject to
741 change\.  Only the output from \fBnpm ls \-\-json\fR is currently valid\.
742 .
743 .SS "key"
744 .
745 .IP "\(bu" 4
746 Default: \fBnull\fR
747 .
748 .IP "\(bu" 4
749 Type: String
750 .
751 .IP "" 0
752 .
753 .P
754 A client key to pass when accessing the registry\.
755 .
756 .SS "link"
757 .
758 .IP "\(bu" 4
759 Default: false
760 .
761 .IP "\(bu" 4
762 Type: Boolean
763 .
764 .IP "" 0
765 .
766 .P
767 If true, then local installs will link if there is a suitable globally
768 installed package\.
769 .
770 .P
771 Note that this means that local installs can cause things to be
772 installed into the global space at the same time\.  The link is only done
773 if one of the two conditions are met:
774 .
775 .IP "\(bu" 4
776 The package is not already installed globally, or
777 .
778 .IP "\(bu" 4
779 the globally installed version is identical to the version that is
780 being installed locally\.
781 .
782 .IP "" 0
783 .
784 .SS "local\-address"
785 .
786 .IP "\(bu" 4
787 Default: undefined
788 .
789 .IP "\(bu" 4
790 Type: IP Address
791 .
792 .IP "" 0
793 .
794 .P
795 The IP address of the local interface to use when making connections
796 to the npm registry\.  Must be IPv4 in versions of Node prior to 0\.12\.
797 .
798 .SS "loglevel"
799 .
800 .IP "\(bu" 4
801 Default: "http"
802 .
803 .IP "\(bu" 4
804 Type: String
805 .
806 .IP "\(bu" 4
807 Values: "silent", "win", "error", "warn", "http", "info", "verbose", "silly"
808 .
809 .IP "" 0
810 .
811 .P
812 What level of logs to report\.  On failure, \fIall\fR logs are written to \fBnpm\-debug\.log\fR in the current working directory\.
813 .
814 .P
815 Any logs of a higher level than the setting are shown\.
816 The default is "http", which shows http, warn, and error output\.
817 .
818 .SS "logstream"
819 .
820 .IP "\(bu" 4
821 Default: process\.stderr
822 .
823 .IP "\(bu" 4
824 Type: Stream
825 .
826 .IP "" 0
827 .
828 .P
829 This is the stream that is passed to the npmlog \fIhttps://github\.com/isaacs/npmlog\fR module at run time\.
830 .
831 .P
832 It cannot be set from the command line, but if you are using npm
833 programmatically, you may wish to send logs to somewhere other than
834 stderr\.
835 .
836 .P
837 If the \fBcolor\fR config is set to true, then this stream will receive
838 colored output if it is a TTY\.
839 .
840 .SS "long"
841 .
842 .IP "\(bu" 4
843 Default: false
844 .
845 .IP "\(bu" 4
846 Type: Boolean
847 .
848 .IP "" 0
849 .
850 .P
851 Show extended information in \fBnpm ls\fR
852 .
853 .SS "message"
854 .
855 .IP "\(bu" 4
856 Default: "%s"
857 .
858 .IP "\(bu" 4
859 Type: String
860 .
861 .IP "" 0
862 .
863 .P
864 Commit message which is used by \fBnpm version\fR when creating version commit\.
865 .
866 .P
867 Any "%s" in the message will be replaced with the version number\.
868 .
869 .SS "node\-version"
870 .
871 .IP "\(bu" 4
872 Default: process\.version
873 .
874 .IP "\(bu" 4
875 Type: semver or false
876 .
877 .IP "" 0
878 .
879 .P
880 The node version to use when checking package\'s "engines" hash\.
881 .
882 .SS "npat"
883 .
884 .IP "\(bu" 4
885 Default: false
886 .
887 .IP "\(bu" 4
888 Type: Boolean
889 .
890 .IP "" 0
891 .
892 .P
893 Run tests on installation\.
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 "umask"
1344 .
1345 .IP "\(bu" 4
1346 Default: 022
1347 .
1348 .IP "\(bu" 4
1349 Type: Octal numeric string
1350 .
1351 .IP "" 0
1352 .
1353 .P
1354 The "umask" value to use when setting the file creation mode on files
1355 and folders\.
1356 .
1357 .P
1358 Folders and executables are given a mode which is \fB0777\fR masked against
1359 this value\.  Other files are given a mode which is \fB0666\fR masked against
1360 this value\.  Thus, the defaults are \fB0755\fR and \fB0644\fR respectively\.
1361 .
1362 .SS "user\-agent"
1363 .
1364 .IP "\(bu" 4
1365 Default: node/{process\.version} {process\.platform} {process\.arch}
1366 .
1367 .IP "\(bu" 4
1368 Type: String
1369 .
1370 .IP "" 0
1371 .
1372 .P
1373 Sets a User\-Agent to the request header
1374 .
1375 .SS "version"
1376 .
1377 .IP "\(bu" 4
1378 Default: false
1379 .
1380 .IP "\(bu" 4
1381 Type: boolean
1382 .
1383 .IP "" 0
1384 .
1385 .P
1386 If true, output the npm version and exit successfully\.
1387 .
1388 .P
1389 Only relevant when specified explicitly on the command line\.
1390 .
1391 .SS "versions"
1392 .
1393 .IP "\(bu" 4
1394 Default: false
1395 .
1396 .IP "\(bu" 4
1397 Type: boolean
1398 .
1399 .IP "" 0
1400 .
1401 .P
1402 If true, output the npm version as well as node\'s \fBprocess\.versions\fR
1403 hash, and exit successfully\.
1404 .
1405 .P
1406 Only relevant when specified explicitly on the command line\.
1407 .
1408 .SS "viewer"
1409 .
1410 .IP "\(bu" 4
1411 Default: "man" on Posix, "browser" on Windows
1412 .
1413 .IP "\(bu" 4
1414 Type: path
1415 .
1416 .IP "" 0
1417 .
1418 .P
1419 The program to use to view help content\.
1420 .
1421 .P
1422 Set to \fB"browser"\fR to view html help content in the default web browser\.
1423 .
1424 .SH "SEE ALSO"
1425 .
1426 .IP "\(bu" 4
1427 npm help config
1428 .
1429 .IP "\(bu" 4
1430 npm help  config
1431 .
1432 .IP "\(bu" 4
1433 npm help  npmrc
1434 .
1435 .IP "\(bu" 4
1436 npm help  scripts
1437 .
1438 .IP "\(bu" 4
1439 npm help  folders
1440 .
1441 .IP "\(bu" 4
1442 npm help npm
1443 .
1444 .IP "" 0
1445