config.7 66 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595
  1. .TH "CONFIG" "7" "October 2021" "" ""
  2. .SH "NAME"
  3. \fBconfig\fR \- More than you probably want to know about npm configuration
  4. .SS Description
  5. .P
  6. npm gets its configuration values from the following sources, sorted by priority:
  7. .SS Command Line Flags
  8. .P
  9. Putting \fB\-\-foo bar\fP on the command line sets the \fBfoo\fP configuration
  10. parameter to \fB"bar"\fP\|\. A \fB\-\-\fP argument tells the cli parser to stop
  11. reading flags\. Using \fB\-\-flag\fP without specifying any value will set
  12. the value to \fBtrue\fP\|\.
  13. .P
  14. Example: \fB\-\-flag1 \-\-flag2\fP will set both configuration parameters
  15. to \fBtrue\fP, while \fB\-\-flag1 \-\-flag2 bar\fP will set \fBflag1\fP to \fBtrue\fP,
  16. and \fBflag2\fP to \fBbar\fP\|\. Finally, \fB\-\-flag1 \-\-flag2 \-\- bar\fP will set
  17. both configuration parameters to \fBtrue\fP, and the \fBbar\fP is taken
  18. as a command argument\.
  19. .SS Environment Variables
  20. .P
  21. Any environment variables that start with \fBnpm_config_\fP will be
  22. interpreted as a configuration parameter\. For example, putting
  23. \fBnpm_config_foo=bar\fP in your environment will set the \fBfoo\fP
  24. configuration parameter to \fBbar\fP\|\. Any environment configurations that
  25. are not given a value will be given the value of \fBtrue\fP\|\. Config
  26. values are case\-insensitive, so \fBNPM_CONFIG_FOO=bar\fP will work the
  27. same\. However, please note that inside npm help \fBscripts\fP
  28. npm will set its own environment variables and Node will prefer
  29. those lowercase versions over any uppercase ones that you might set\.
  30. For details see this issue \fIhttps://github\.com/npm/npm/issues/14528\fR\|\.
  31. .P
  32. Notice that you need to use underscores instead of dashes, so \fB\-\-allow\-same\-version\fP
  33. would become \fBnpm_config_allow_same_version=true\fP\|\.
  34. .SS npmrc Files
  35. .P
  36. The four relevant files are:
  37. .RS 0
  38. .IP \(bu 2
  39. per\-project configuration file (\fB/path/to/my/project/\.npmrc\fP)
  40. .IP \(bu 2
  41. per\-user configuration file (defaults to \fB$HOME/\.npmrc\fP; configurable via CLI
  42. option \fB\-\-userconfig\fP or environment variable \fB$NPM_CONFIG_USERCONFIG\fP)
  43. .IP \(bu 2
  44. global configuration file (defaults to \fB$PREFIX/etc/npmrc\fP; configurable via
  45. CLI option \fB\-\-globalconfig\fP or environment variable \fB$NPM_CONFIG_GLOBALCONFIG\fP)
  46. .IP \(bu 2
  47. npm's built\-in configuration file (\fB/path/to/npm/npmrc\fP)
  48. .RE
  49. .P
  50. See npm help npmrc for more details\.
  51. .SS Default Configs
  52. .P
  53. Run \fBnpm config ls \-l\fP to see a set of configuration parameters that are
  54. internal to npm, and are defaults if nothing else is specified\.
  55. .SS Shorthands and Other CLI Niceties
  56. .P
  57. The following shorthands are parsed on the command\-line:
  58. <!\-\- AUTOGENERATED CONFIG SHORTHANDS START \-\->
  59. <!\-\- automatically generated, do not edit manually \-\->
  60. <!\-\- see lib/utils/config/definitions\.js \-\->
  61. .RS 0
  62. .IP \(bu 2
  63. \fB\-a\fP: \fB\-\-all\fP
  64. .IP \(bu 2
  65. \fB\-\-enjoy\-by\fP: \fB\-\-before\fP
  66. .IP \(bu 2
  67. \fB\-c\fP: \fB\-\-call\fP
  68. .IP \(bu 2
  69. \fB\-\-desc\fP: \fB\-\-description\fP
  70. .IP \(bu 2
  71. \fB\-f\fP: \fB\-\-force\fP
  72. .IP \(bu 2
  73. \fB\-g\fP: \fB\-\-global\fP
  74. .IP \(bu 2
  75. \fB\-L\fP: \fB\-\-location\fP
  76. .IP \(bu 2
  77. \fB\-d\fP: \fB\-\-loglevel info\fP
  78. .IP \(bu 2
  79. \fB\-s\fP: \fB\-\-loglevel silent\fP
  80. .IP \(bu 2
  81. \fB\-\-silent\fP: \fB\-\-loglevel silent\fP
  82. .IP \(bu 2
  83. \fB\-\-ddd\fP: \fB\-\-loglevel silly\fP
  84. .IP \(bu 2
  85. \fB\-\-dd\fP: \fB\-\-loglevel verbose\fP
  86. .IP \(bu 2
  87. \fB\-\-verbose\fP: \fB\-\-loglevel verbose\fP
  88. .IP \(bu 2
  89. \fB\-q\fP: \fB\-\-loglevel warn\fP
  90. .IP \(bu 2
  91. \fB\-\-quiet\fP: \fB\-\-loglevel warn\fP
  92. .IP \(bu 2
  93. \fB\-l\fP: \fB\-\-long\fP
  94. .IP \(bu 2
  95. \fB\-m\fP: \fB\-\-message\fP
  96. .IP \(bu 2
  97. \fB\-\-local\fP: \fB\-\-no\-global\fP
  98. .IP \(bu 2
  99. \fB\-n\fP: \fB\-\-no\-yes\fP
  100. .IP \(bu 2
  101. \fB\-\-no\fP: \fB\-\-no\-yes\fP
  102. .IP \(bu 2
  103. \fB\-p\fP: \fB\-\-parseable\fP
  104. .IP \(bu 2
  105. \fB\-\-porcelain\fP: \fB\-\-parseable\fP
  106. .IP \(bu 2
  107. \fB\-C\fP: \fB\-\-prefix\fP
  108. .IP \(bu 2
  109. \fB\-\-readonly\fP: \fB\-\-read\-only\fP
  110. .IP \(bu 2
  111. \fB\-\-reg\fP: \fB\-\-registry\fP
  112. .IP \(bu 2
  113. \fB\-S\fP: \fB\-\-save\fP
  114. .IP \(bu 2
  115. \fB\-B\fP: \fB\-\-save\-bundle\fP
  116. .IP \(bu 2
  117. \fB\-D\fP: \fB\-\-save\-dev\fP
  118. .IP \(bu 2
  119. \fB\-E\fP: \fB\-\-save\-exact\fP
  120. .IP \(bu 2
  121. \fB\-O\fP: \fB\-\-save\-optional\fP
  122. .IP \(bu 2
  123. \fB\-P\fP: \fB\-\-save\-prod\fP
  124. .IP \(bu 2
  125. \fB\-?\fP: \fB\-\-usage\fP
  126. .IP \(bu 2
  127. \fB\-h\fP: \fB\-\-usage\fP
  128. .IP \(bu 2
  129. \fB\-H\fP: \fB\-\-usage\fP
  130. .IP \(bu 2
  131. \fB\-\-help\fP: \fB\-\-usage\fP
  132. .IP \(bu 2
  133. \fB\-v\fP: \fB\-\-version\fP
  134. .IP \(bu 2
  135. \fB\-w\fP: \fB\-\-workspace\fP
  136. .IP \(bu 2
  137. \fB\-\-ws\fP: \fB\-\-workspaces\fP
  138. .IP \(bu 2
  139. \fB\-y\fP: \fB\-\-yes\fP
  140. .RE
  141. <!\-\- automatically generated, do not edit manually \-\->
  142. <!\-\- see lib/utils/config/definitions\.js \-\->
  143. <!\-\- AUTOGENERATED CONFIG SHORTHANDS END \-\->
  144. .P
  145. If the specified configuration param resolves unambiguously to a known
  146. configuration parameter, then it is expanded to that configuration
  147. parameter\. For example:
  148. .P
  149. .RS 2
  150. .nf
  151. npm ls \-\-par
  152. # same as:
  153. npm ls \-\-parseable
  154. .fi
  155. .RE
  156. .P
  157. If multiple single\-character shorthands are strung together, and the
  158. resulting combination is unambiguously not some other configuration
  159. param, then it is expanded to its various component pieces\. For
  160. example:
  161. .P
  162. .RS 2
  163. .nf
  164. npm ls \-gpld
  165. # same as:
  166. npm ls \-\-global \-\-parseable \-\-long \-\-loglevel info
  167. .fi
  168. .RE
  169. .SS Config Settings
  170. <!\-\- AUTOGENERATED CONFIG DESCRIPTIONS START \-\->
  171. <!\-\- automatically generated, do not edit manually \-\->
  172. <!\-\- see lib/utils/config/definitions\.js \-\->
  173. .SS \fB_auth\fP
  174. .RS 0
  175. .IP \(bu 2
  176. Default: null
  177. .IP \(bu 2
  178. Type: null or String
  179. .RE
  180. .P
  181. A basic\-auth string to use when authenticating against the npm registry\.
  182. .P
  183. Warning: This should generally not be set via a command\-line option\. It is
  184. safer to use a registry\-provided authentication bearer token stored in the
  185. ~/\.npmrc file by running \fBnpm login\fP\|\.
  186. <!\-\- automatically generated, do not edit manually \-\->
  187. <!\-\- see lib/utils/config/definitions\.js \-\->
  188. .SS \fBaccess\fP
  189. .RS 0
  190. .IP \(bu 2
  191. Default: 'restricted' for scoped packages, 'public' for unscoped packages
  192. .IP \(bu 2
  193. Type: null, "restricted", or "public"
  194. .RE
  195. .P
  196. When publishing scoped packages, the access level defaults to \fBrestricted\fP\|\.
  197. If you want your scoped package to be publicly viewable (and installable)
  198. set \fB\-\-access=public\fP\|\. The only valid values for \fBaccess\fP are \fBpublic\fP and
  199. \fBrestricted\fP\|\. Unscoped packages \fIalways\fR have an access level of \fBpublic\fP\|\.
  200. .P
  201. Note: Using the \fB\-\-access\fP flag on the \fBnpm publish\fP command will only set
  202. the package access level on the initial publish of the package\. Any
  203. subsequent \fBnpm publish\fP commands using the \fB\-\-access\fP flag will not have an
  204. effect to the access level\. To make changes to the access level after the
  205. initial publish use \fBnpm access\fP\|\.
  206. <!\-\- automatically generated, do not edit manually \-\->
  207. <!\-\- see lib/utils/config/definitions\.js \-\->
  208. .SS \fBall\fP
  209. .RS 0
  210. .IP \(bu 2
  211. Default: false
  212. .IP \(bu 2
  213. Type: Boolean
  214. .RE
  215. .P
  216. When running \fBnpm outdated\fP and \fBnpm ls\fP, setting \fB\-\-all\fP will show all
  217. outdated or installed packages, rather than only those directly depended
  218. upon by the current project\.
  219. <!\-\- automatically generated, do not edit manually \-\->
  220. <!\-\- see lib/utils/config/definitions\.js \-\->
  221. .SS \fBallow\-same\-version\fP
  222. .RS 0
  223. .IP \(bu 2
  224. Default: false
  225. .IP \(bu 2
  226. Type: Boolean
  227. .RE
  228. .P
  229. Prevents throwing an error when \fBnpm version\fP is used to set the new version
  230. to the same value as the current version\.
  231. <!\-\- automatically generated, do not edit manually \-\->
  232. <!\-\- see lib/utils/config/definitions\.js \-\->
  233. .SS \fBaudit\fP
  234. .RS 0
  235. .IP \(bu 2
  236. Default: true
  237. .IP \(bu 2
  238. Type: Boolean
  239. .RE
  240. .P
  241. When "true" submit audit reports alongside the current npm command to the
  242. default registry and all registries configured for scopes\. See the
  243. documentation for npm help \fBaudit\fP for details on what is
  244. submitted\.
  245. <!\-\- automatically generated, do not edit manually \-\->
  246. <!\-\- see lib/utils/config/definitions\.js \-\->
  247. .SS \fBaudit\-level\fP
  248. .RS 0
  249. .IP \(bu 2
  250. Default: null
  251. .IP \(bu 2
  252. Type: null, "info", "low", "moderate", "high", "critical", or "none"
  253. .RE
  254. .P
  255. The minimum level of vulnerability for \fBnpm audit\fP to exit with a non\-zero
  256. exit code\.
  257. <!\-\- automatically generated, do not edit manually \-\->
  258. <!\-\- see lib/utils/config/definitions\.js \-\->
  259. .SS \fBbefore\fP
  260. .RS 0
  261. .IP \(bu 2
  262. Default: null
  263. .IP \(bu 2
  264. Type: null or Date
  265. .RE
  266. .P
  267. If passed to \fBnpm install\fP, will rebuild the npm tree such that only
  268. versions that were available \fBon or before\fR the \fB\-\-before\fP time get
  269. installed\. If there's no versions available for the current set of direct
  270. dependencies, the command will error\.
  271. .P
  272. If the requested version is a \fBdist\-tag\fP and the given tag does not pass the
  273. \fB\-\-before\fP filter, the most recent version less than or equal to that tag
  274. will be used\. For example, \fBfoo@latest\fP might install \fBfoo@1\.2\fP even though
  275. \fBlatest\fP is \fB2\.0\fP\|\.
  276. <!\-\- automatically generated, do not edit manually \-\->
  277. <!\-\- see lib/utils/config/definitions\.js \-\->
  278. .SS \fBbin\-links\fP
  279. .RS 0
  280. .IP \(bu 2
  281. Default: true
  282. .IP \(bu 2
  283. Type: Boolean
  284. .RE
  285. .P
  286. Tells npm to create symlinks (or \fB\|\.cmd\fP shims on Windows) for package
  287. executables\.
  288. .P
  289. Set to false to have it not do this\. This can be used to work around the
  290. fact that some file systems don't support symlinks, even on ostensibly Unix
  291. systems\.
  292. <!\-\- automatically generated, do not edit manually \-\->
  293. <!\-\- see lib/utils/config/definitions\.js \-\->
  294. .SS \fBbrowser\fP
  295. .RS 0
  296. .IP \(bu 2
  297. Default: OS X: \fB"open"\fP, Windows: \fB"start"\fP, Others: \fB"xdg\-open"\fP
  298. .IP \(bu 2
  299. Type: null, Boolean, or String
  300. .RE
  301. .P
  302. The browser that is called by npm commands to open websites\.
  303. .P
  304. Set to \fBfalse\fP to suppress browser behavior and instead print urls to
  305. terminal\.
  306. .P
  307. Set to \fBtrue\fP to use default system URL opener\.
  308. <!\-\- automatically generated, do not edit manually \-\->
  309. <!\-\- see lib/utils/config/definitions\.js \-\->
  310. .SS \fBca\fP
  311. .RS 0
  312. .IP \(bu 2
  313. Default: null
  314. .IP \(bu 2
  315. Type: null or String (can be set multiple times)
  316. .RE
  317. .P
  318. The Certificate Authority signing certificate that is trusted for SSL
  319. connections to the registry\. Values should be in PEM format (Windows calls
  320. it "Base\-64 encoded X\.509 (\.CER)") with newlines replaced by the string
  321. "\\n"\. For example:
  322. .P
  323. .RS 2
  324. .nf
  325. ca="\-\-\-\-\-BEGIN CERTIFICATE\-\-\-\-\-\\nXXXX\\nXXXX\\n\-\-\-\-\-END CERTIFICATE\-\-\-\-\-"
  326. .fi
  327. .RE
  328. .P
  329. Set to \fBnull\fP to only allow "known" registrars, or to a specific CA cert to
  330. trust only that specific signing authority\.
  331. .P
  332. Multiple CAs can be trusted by specifying an array of certificates:
  333. .P
  334. .RS 2
  335. .nf
  336. ca[]="\.\.\."
  337. ca[]="\.\.\."
  338. .fi
  339. .RE
  340. .P
  341. See also the \fBstrict\-ssl\fP config\.
  342. <!\-\- automatically generated, do not edit manually \-\->
  343. <!\-\- see lib/utils/config/definitions\.js \-\->
  344. .SS \fBcache\fP
  345. .RS 0
  346. .IP \(bu 2
  347. Default: Windows: \fB%LocalAppData%\\npm\-cache\fP, Posix: \fB~/\.npm\fP
  348. .IP \(bu 2
  349. Type: Path
  350. .RE
  351. .P
  352. The location of npm's cache directory\. See npm help \fBnpm
  353. cache\fP
  354. <!\-\- automatically generated, do not edit manually \-\->
  355. <!\-\- see lib/utils/config/definitions\.js \-\->
  356. .SS \fBcafile\fP
  357. .RS 0
  358. .IP \(bu 2
  359. Default: null
  360. .IP \(bu 2
  361. Type: Path
  362. .RE
  363. .P
  364. A path to a file containing one or multiple Certificate Authority signing
  365. certificates\. Similar to the \fBca\fP setting, but allows for multiple CA's, as
  366. well as for the CA information to be stored in a file on disk\.
  367. <!\-\- automatically generated, do not edit manually \-\->
  368. <!\-\- see lib/utils/config/definitions\.js \-\->
  369. .SS \fBcall\fP
  370. .RS 0
  371. .IP \(bu 2
  372. Default: ""
  373. .IP \(bu 2
  374. Type: String
  375. .RE
  376. .P
  377. Optional companion option for \fBnpm exec\fP, \fBnpx\fP that allows for specifying a
  378. custom command to be run along with the installed packages\.
  379. .P
  380. .RS 2
  381. .nf
  382. npm exec \-\-package yo \-\-package generator\-node \-\-call "yo node"
  383. .fi
  384. .RE
  385. <!\-\- automatically generated, do not edit manually \-\->
  386. <!\-\- see lib/utils/config/definitions\.js \-\->
  387. .SS \fBcert\fP
  388. .RS 0
  389. .IP \(bu 2
  390. Default: null
  391. .IP \(bu 2
  392. Type: null or String
  393. .RE
  394. .P
  395. A client certificate to pass when accessing the registry\. Values should be
  396. in PEM format (Windows calls it "Base\-64 encoded X\.509 (\.CER)") with
  397. newlines replaced by the string "\\n"\. For example:
  398. .P
  399. .RS 2
  400. .nf
  401. cert="\-\-\-\-\-BEGIN CERTIFICATE\-\-\-\-\-\\nXXXX\\nXXXX\\n\-\-\-\-\-END CERTIFICATE\-\-\-\-\-"
  402. .fi
  403. .RE
  404. .P
  405. It is \fInot\fR the path to a certificate file (and there is no "certfile"
  406. option)\.
  407. <!\-\- automatically generated, do not edit manually \-\->
  408. <!\-\- see lib/utils/config/definitions\.js \-\->
  409. .SS \fBci\-name\fP
  410. .RS 0
  411. .IP \(bu 2
  412. Default: The name of the current CI system, or \fBnull\fP when not on a known CI
  413. platform\.
  414. .IP \(bu 2
  415. Type: null or String
  416. .RE
  417. .P
  418. The name of a continuous integration system\. If not set explicitly, npm will
  419. detect the current CI environment using the
  420. \fB@npmcli/ci\-detect\fP \fIhttp://npm\.im/@npmcli/ci\-detect\fR module\.
  421. <!\-\- automatically generated, do not edit manually \-\->
  422. <!\-\- see lib/utils/config/definitions\.js \-\->
  423. .SS \fBcidr\fP
  424. .RS 0
  425. .IP \(bu 2
  426. Default: null
  427. .IP \(bu 2
  428. Type: null or String (can be set multiple times)
  429. .RE
  430. .P
  431. This is a list of CIDR address to be used when configuring limited access
  432. tokens with the \fBnpm token create\fP command\.
  433. <!\-\- automatically generated, do not edit manually \-\->
  434. <!\-\- see lib/utils/config/definitions\.js \-\->
  435. .SS \fBcolor\fP
  436. .RS 0
  437. .IP \(bu 2
  438. Default: true unless the NO_COLOR environ is set to something other than '0'
  439. .IP \(bu 2
  440. Type: "always" or Boolean
  441. .RE
  442. .P
  443. If false, never shows colors\. If \fB"always"\fP then always shows colors\. If
  444. true, then only prints color codes for tty file descriptors\.
  445. <!\-\- automatically generated, do not edit manually \-\->
  446. <!\-\- see lib/utils/config/definitions\.js \-\->
  447. .SS \fBcommit\-hooks\fP
  448. .RS 0
  449. .IP \(bu 2
  450. Default: true
  451. .IP \(bu 2
  452. Type: Boolean
  453. .RE
  454. .P
  455. Run git commit hooks when using the \fBnpm version\fP command\.
  456. <!\-\- automatically generated, do not edit manually \-\->
  457. <!\-\- see lib/utils/config/definitions\.js \-\->
  458. .SS \fBdepth\fP
  459. .RS 0
  460. .IP \(bu 2
  461. Default: \fBInfinity\fP if \fB\-\-all\fP is set, otherwise \fB1\fP
  462. .IP \(bu 2
  463. Type: null or Number
  464. .RE
  465. .P
  466. The depth to go when recursing packages for \fBnpm ls\fP\|\.
  467. .P
  468. If not set, \fBnpm ls\fP will show only the immediate dependencies of the root
  469. project\. If \fB\-\-all\fP is set, then npm will show all dependencies by default\.
  470. <!\-\- automatically generated, do not edit manually \-\->
  471. <!\-\- see lib/utils/config/definitions\.js \-\->
  472. .SS \fBdescription\fP
  473. .RS 0
  474. .IP \(bu 2
  475. Default: true
  476. .IP \(bu 2
  477. Type: Boolean
  478. .RE
  479. .P
  480. Show the description in \fBnpm search\fP
  481. <!\-\- automatically generated, do not edit manually \-\->
  482. <!\-\- see lib/utils/config/definitions\.js \-\->
  483. .SS \fBdiff\fP
  484. .RS 0
  485. .IP \(bu 2
  486. Default:
  487. .IP \(bu 2
  488. Type: String (can be set multiple times)
  489. .RE
  490. .P
  491. Define arguments to compare in \fBnpm diff\fP\|\.
  492. <!\-\- automatically generated, do not edit manually \-\->
  493. <!\-\- see lib/utils/config/definitions\.js \-\->
  494. .SS \fBdiff\-dst\-prefix\fP
  495. .RS 0
  496. .IP \(bu 2
  497. Default: "b/"
  498. .IP \(bu 2
  499. Type: String
  500. .RE
  501. .P
  502. Destination prefix to be used in \fBnpm diff\fP output\.
  503. <!\-\- automatically generated, do not edit manually \-\->
  504. <!\-\- see lib/utils/config/definitions\.js \-\->
  505. .SS \fBdiff\-ignore\-all\-space\fP
  506. .RS 0
  507. .IP \(bu 2
  508. Default: false
  509. .IP \(bu 2
  510. Type: Boolean
  511. .RE
  512. .P
  513. Ignore whitespace when comparing lines in \fBnpm diff\fP\|\.
  514. <!\-\- automatically generated, do not edit manually \-\->
  515. <!\-\- see lib/utils/config/definitions\.js \-\->
  516. .SS \fBdiff\-name\-only\fP
  517. .RS 0
  518. .IP \(bu 2
  519. Default: false
  520. .IP \(bu 2
  521. Type: Boolean
  522. .RE
  523. .P
  524. Prints only filenames when using \fBnpm diff\fP\|\.
  525. <!\-\- automatically generated, do not edit manually \-\->
  526. <!\-\- see lib/utils/config/definitions\.js \-\->
  527. .SS \fBdiff\-no\-prefix\fP
  528. .RS 0
  529. .IP \(bu 2
  530. Default: false
  531. .IP \(bu 2
  532. Type: Boolean
  533. .RE
  534. .P
  535. Do not show any source or destination prefix in \fBnpm diff\fP output\.
  536. .P
  537. Note: this causes \fBnpm diff\fP to ignore the \fB\-\-diff\-src\-prefix\fP and
  538. \fB\-\-diff\-dst\-prefix\fP configs\.
  539. <!\-\- automatically generated, do not edit manually \-\->
  540. <!\-\- see lib/utils/config/definitions\.js \-\->
  541. .SS \fBdiff\-src\-prefix\fP
  542. .RS 0
  543. .IP \(bu 2
  544. Default: "a/"
  545. .IP \(bu 2
  546. Type: String
  547. .RE
  548. .P
  549. Source prefix to be used in \fBnpm diff\fP output\.
  550. <!\-\- automatically generated, do not edit manually \-\->
  551. <!\-\- see lib/utils/config/definitions\.js \-\->
  552. .SS \fBdiff\-text\fP
  553. .RS 0
  554. .IP \(bu 2
  555. Default: false
  556. .IP \(bu 2
  557. Type: Boolean
  558. .RE
  559. .P
  560. Treat all files as text in \fBnpm diff\fP\|\.
  561. <!\-\- automatically generated, do not edit manually \-\->
  562. <!\-\- see lib/utils/config/definitions\.js \-\->
  563. .SS \fBdiff\-unified\fP
  564. .RS 0
  565. .IP \(bu 2
  566. Default: 3
  567. .IP \(bu 2
  568. Type: Number
  569. .RE
  570. .P
  571. The number of lines of context to print in \fBnpm diff\fP\|\.
  572. <!\-\- automatically generated, do not edit manually \-\->
  573. <!\-\- see lib/utils/config/definitions\.js \-\->
  574. .SS \fBdry\-run\fP
  575. .RS 0
  576. .IP \(bu 2
  577. Default: false
  578. .IP \(bu 2
  579. Type: Boolean
  580. .RE
  581. .P
  582. Indicates that you don't want npm to make any changes and that it should
  583. only report what it would have done\. This can be passed into any of the
  584. commands that modify your local installation, eg, \fBinstall\fP, \fBupdate\fP,
  585. \fBdedupe\fP, \fBuninstall\fP, as well as \fBpack\fP and \fBpublish\fP\|\.
  586. .P
  587. Note: This is NOT honored by other network related commands, eg \fBdist\-tags\fP,
  588. \fBowner\fP, etc\.
  589. <!\-\- automatically generated, do not edit manually \-\->
  590. <!\-\- see lib/utils/config/definitions\.js \-\->
  591. .SS \fBeditor\fP
  592. .RS 0
  593. .IP \(bu 2
  594. Default: The EDITOR or VISUAL environment variables, or 'notepad\.exe' on
  595. Windows, or 'vim' on Unix systems
  596. .IP \(bu 2
  597. Type: String
  598. .RE
  599. .P
  600. The command to run for \fBnpm edit\fP and \fBnpm config edit\fP\|\.
  601. <!\-\- automatically generated, do not edit manually \-\->
  602. <!\-\- see lib/utils/config/definitions\.js \-\->
  603. .SS \fBengine\-strict\fP
  604. .RS 0
  605. .IP \(bu 2
  606. Default: false
  607. .IP \(bu 2
  608. Type: Boolean
  609. .RE
  610. .P
  611. If set to true, then npm will stubbornly refuse to install (or even consider
  612. installing) any package that claims to not be compatible with the current
  613. Node\.js version\.
  614. .P
  615. This can be overridden by setting the \fB\-\-force\fP flag\.
  616. <!\-\- automatically generated, do not edit manually \-\->
  617. <!\-\- see lib/utils/config/definitions\.js \-\->
  618. .SS \fBfetch\-retries\fP
  619. .RS 0
  620. .IP \(bu 2
  621. Default: 2
  622. .IP \(bu 2
  623. Type: Number
  624. .RE
  625. .P
  626. The "retries" config for the \fBretry\fP module to use when fetching packages
  627. from the registry\.
  628. .P
  629. npm will retry idempotent read requests to the registry in the case of
  630. network failures or 5xx HTTP errors\.
  631. <!\-\- automatically generated, do not edit manually \-\->
  632. <!\-\- see lib/utils/config/definitions\.js \-\->
  633. .SS \fBfetch\-retry\-factor\fP
  634. .RS 0
  635. .IP \(bu 2
  636. Default: 10
  637. .IP \(bu 2
  638. Type: Number
  639. .RE
  640. .P
  641. The "factor" config for the \fBretry\fP module to use when fetching packages\.
  642. <!\-\- automatically generated, do not edit manually \-\->
  643. <!\-\- see lib/utils/config/definitions\.js \-\->
  644. .SS \fBfetch\-retry\-maxtimeout\fP
  645. .RS 0
  646. .IP \(bu 2
  647. Default: 60000 (1 minute)
  648. .IP \(bu 2
  649. Type: Number
  650. .RE
  651. .P
  652. The "maxTimeout" config for the \fBretry\fP module to use when fetching
  653. packages\.
  654. <!\-\- automatically generated, do not edit manually \-\->
  655. <!\-\- see lib/utils/config/definitions\.js \-\->
  656. .SS \fBfetch\-retry\-mintimeout\fP
  657. .RS 0
  658. .IP \(bu 2
  659. Default: 10000 (10 seconds)
  660. .IP \(bu 2
  661. Type: Number
  662. .RE
  663. .P
  664. The "minTimeout" config for the \fBretry\fP module to use when fetching
  665. packages\.
  666. <!\-\- automatically generated, do not edit manually \-\->
  667. <!\-\- see lib/utils/config/definitions\.js \-\->
  668. .SS \fBfetch\-timeout\fP
  669. .RS 0
  670. .IP \(bu 2
  671. Default: 300000 (5 minutes)
  672. .IP \(bu 2
  673. Type: Number
  674. .RE
  675. .P
  676. The maximum amount of time to wait for HTTP requests to complete\.
  677. <!\-\- automatically generated, do not edit manually \-\->
  678. <!\-\- see lib/utils/config/definitions\.js \-\->
  679. .SS \fBforce\fP
  680. .RS 0
  681. .IP \(bu 2
  682. Default: false
  683. .IP \(bu 2
  684. Type: Boolean
  685. .RE
  686. .P
  687. Removes various protections against unfortunate side effects, common
  688. mistakes, unnecessary performance degradation, and malicious input\.
  689. .RS 0
  690. .IP \(bu 2
  691. Allow clobbering non\-npm files in global installs\.
  692. .IP \(bu 2
  693. Allow the \fBnpm version\fP command to work on an unclean git repository\.
  694. .IP \(bu 2
  695. Allow deleting the cache folder with \fBnpm cache clean\fP\|\.
  696. .IP \(bu 2
  697. Allow installing packages that have an \fBengines\fP declaration requiring a
  698. different version of npm\.
  699. .IP \(bu 2
  700. Allow installing packages that have an \fBengines\fP declaration requiring a
  701. different version of \fBnode\fP, even if \fB\-\-engine\-strict\fP is enabled\.
  702. .IP \(bu 2
  703. Allow \fBnpm audit fix\fP to install modules outside your stated dependency
  704. range (including SemVer\-major changes)\.
  705. .IP \(bu 2
  706. Allow unpublishing all versions of a published package\.
  707. .IP \(bu 2
  708. Allow conflicting peerDependencies to be installed in the root project\.
  709. .IP \(bu 2
  710. Implicitly set \fB\-\-yes\fP during \fBnpm init\fP\|\.
  711. .IP \(bu 2
  712. Allow clobbering existing values in \fBnpm pkg\fP
  713. .RE
  714. .P
  715. If you don't have a clear idea of what you want to do, it is strongly
  716. recommended that you do not use this option!
  717. <!\-\- automatically generated, do not edit manually \-\->
  718. <!\-\- see lib/utils/config/definitions\.js \-\->
  719. .SS \fBforeground\-scripts\fP
  720. .RS 0
  721. .IP \(bu 2
  722. Default: false
  723. .IP \(bu 2
  724. Type: Boolean
  725. .RE
  726. .P
  727. Run all build scripts (ie, \fBpreinstall\fP, \fBinstall\fP, and \fBpostinstall\fP)
  728. scripts for installed packages in the foreground process, sharing standard
  729. input, output, and error with the main npm process\.
  730. .P
  731. Note that this will generally make installs run slower, and be much noisier,
  732. but can be useful for debugging\.
  733. <!\-\- automatically generated, do not edit manually \-\->
  734. <!\-\- see lib/utils/config/definitions\.js \-\->
  735. .SS \fBformat\-package\-lock\fP
  736. .RS 0
  737. .IP \(bu 2
  738. Default: true
  739. .IP \(bu 2
  740. Type: Boolean
  741. .RE
  742. .P
  743. Format \fBpackage\-lock\.json\fP or \fBnpm\-shrinkwrap\.json\fP as a human readable
  744. file\.
  745. <!\-\- automatically generated, do not edit manually \-\->
  746. <!\-\- see lib/utils/config/definitions\.js \-\->
  747. .SS \fBfund\fP
  748. .RS 0
  749. .IP \(bu 2
  750. Default: true
  751. .IP \(bu 2
  752. Type: Boolean
  753. .RE
  754. .P
  755. When "true" displays the message at the end of each \fBnpm install\fP
  756. acknowledging the number of dependencies looking for funding\. See npm help \fBnpm
  757. fund\fP for details\.
  758. <!\-\- automatically generated, do not edit manually \-\->
  759. <!\-\- see lib/utils/config/definitions\.js \-\->
  760. .SS \fBgit\fP
  761. .RS 0
  762. .IP \(bu 2
  763. Default: "git"
  764. .IP \(bu 2
  765. Type: String
  766. .RE
  767. .P
  768. The command to use for git commands\. If git is installed on the computer,
  769. but is not in the \fBPATH\fP, then set this to the full path to the git binary\.
  770. <!\-\- automatically generated, do not edit manually \-\->
  771. <!\-\- see lib/utils/config/definitions\.js \-\->
  772. .SS \fBgit\-tag\-version\fP
  773. .RS 0
  774. .IP \(bu 2
  775. Default: true
  776. .IP \(bu 2
  777. Type: Boolean
  778. .RE
  779. .P
  780. Tag the commit when using the \fBnpm version\fP command\.
  781. <!\-\- automatically generated, do not edit manually \-\->
  782. <!\-\- see lib/utils/config/definitions\.js \-\->
  783. .SS \fBglobal\fP
  784. .RS 0
  785. .IP \(bu 2
  786. Default: false
  787. .IP \(bu 2
  788. Type: Boolean
  789. .RE
  790. .P
  791. Operates in "global" mode, so that packages are installed into the \fBprefix\fP
  792. folder instead of the current working directory\. See
  793. npm help folders for more on the differences in behavior\.
  794. .RS 0
  795. .IP \(bu 2
  796. packages are installed into the \fB{prefix}/lib/node_modules\fP folder, instead
  797. of the current working directory\.
  798. .IP \(bu 2
  799. bin files are linked to \fB{prefix}/bin\fP
  800. .IP \(bu 2
  801. man pages are linked to \fB{prefix}/share/man\fP
  802. .RE
  803. <!\-\- automatically generated, do not edit manually \-\->
  804. <!\-\- see lib/utils/config/definitions\.js \-\->
  805. .SS \fBglobal\-style\fP
  806. .RS 0
  807. .IP \(bu 2
  808. Default: false
  809. .IP \(bu 2
  810. Type: Boolean
  811. .RE
  812. .P
  813. Causes npm to install the package into your local \fBnode_modules\fP folder with
  814. the same layout it uses with the global \fBnode_modules\fP folder\. Only your
  815. direct dependencies will show in \fBnode_modules\fP and everything they depend
  816. on will be flattened in their \fBnode_modules\fP folders\. This obviously will
  817. eliminate some deduping\. If used with \fBlegacy\-bundling\fP, \fBlegacy\-bundling\fP
  818. will be preferred\.
  819. <!\-\- automatically generated, do not edit manually \-\->
  820. <!\-\- see lib/utils/config/definitions\.js \-\->
  821. .SS \fBglobalconfig\fP
  822. .RS 0
  823. .IP \(bu 2
  824. Default: The global \-\-prefix setting plus 'etc/npmrc'\. For example,
  825. \|'/usr/local/etc/npmrc'
  826. .IP \(bu 2
  827. Type: Path
  828. .RE
  829. .P
  830. The config file to read for global config options\.
  831. <!\-\- automatically generated, do not edit manually \-\->
  832. <!\-\- see lib/utils/config/definitions\.js \-\->
  833. .SS \fBheading\fP
  834. .RS 0
  835. .IP \(bu 2
  836. Default: "npm"
  837. .IP \(bu 2
  838. Type: String
  839. .RE
  840. .P
  841. The string that starts all the debugging log output\.
  842. <!\-\- automatically generated, do not edit manually \-\->
  843. <!\-\- see lib/utils/config/definitions\.js \-\->
  844. .SS \fBhttps\-proxy\fP
  845. .RS 0
  846. .IP \(bu 2
  847. Default: null
  848. .IP \(bu 2
  849. Type: null or URL
  850. .RE
  851. .P
  852. A proxy to use for outgoing https requests\. If the \fBHTTPS_PROXY\fP or
  853. \fBhttps_proxy\fP or \fBHTTP_PROXY\fP or \fBhttp_proxy\fP environment variables are set,
  854. proxy settings will be honored by the underlying \fBmake\-fetch\-happen\fP
  855. library\.
  856. <!\-\- automatically generated, do not edit manually \-\->
  857. <!\-\- see lib/utils/config/definitions\.js \-\->
  858. .SS \fBif\-present\fP
  859. .RS 0
  860. .IP \(bu 2
  861. Default: false
  862. .IP \(bu 2
  863. Type: Boolean
  864. .RE
  865. .P
  866. If true, npm will not exit with an error code when \fBrun\-script\fP is invoked
  867. for a script that isn't defined in the \fBscripts\fP section of \fBpackage\.json\fP\|\.
  868. This option can be used when it's desirable to optionally run a script when
  869. it's present and fail if the script fails\. This is useful, for example, when
  870. running scripts that may only apply for some builds in an otherwise generic
  871. CI setup\.
  872. <!\-\- automatically generated, do not edit manually \-\->
  873. <!\-\- see lib/utils/config/definitions\.js \-\->
  874. .SS \fBignore\-scripts\fP
  875. .RS 0
  876. .IP \(bu 2
  877. Default: false
  878. .IP \(bu 2
  879. Type: Boolean
  880. .RE
  881. .P
  882. If true, npm does not run scripts specified in package\.json files\.
  883. .P
  884. Note that commands explicitly intended to run a particular script, such as
  885. \fBnpm start\fP, \fBnpm stop\fP, \fBnpm restart\fP, \fBnpm test\fP, and \fBnpm run\-script\fP
  886. will still run their intended script if \fBignore\-scripts\fP is set, but they
  887. will \fInot\fR run any pre\- or post\-scripts\.
  888. <!\-\- automatically generated, do not edit manually \-\->
  889. <!\-\- see lib/utils/config/definitions\.js \-\->
  890. .SS \fBinclude\fP
  891. .RS 0
  892. .IP \(bu 2
  893. Default:
  894. .IP \(bu 2
  895. Type: "prod", "dev", "optional", or "peer" (can be set multiple times)
  896. .RE
  897. .P
  898. Option that allows for defining which types of dependencies to install\.
  899. .P
  900. This is the inverse of \fB\-\-omit=<type>\fP\|\.
  901. .P
  902. Dependency types specified in \fB\-\-include\fP will not be omitted, regardless of
  903. the order in which omit/include are specified on the command\-line\.
  904. <!\-\- automatically generated, do not edit manually \-\->
  905. <!\-\- see lib/utils/config/definitions\.js \-\->
  906. .SS \fBinclude\-staged\fP
  907. .RS 0
  908. .IP \(bu 2
  909. Default: false
  910. .IP \(bu 2
  911. Type: Boolean
  912. .RE
  913. .P
  914. Allow installing "staged" published packages, as defined by npm RFC PR
  915. #92 \fIhttps://github\.com/npm/rfcs/pull/92\fR\|\.
  916. .P
  917. This is experimental, and not implemented by the npm public registry\.
  918. <!\-\- automatically generated, do not edit manually \-\->
  919. <!\-\- see lib/utils/config/definitions\.js \-\->
  920. .SS \fBinclude\-workspace\-root\fP
  921. .RS 0
  922. .IP \(bu 2
  923. Default: false
  924. .IP \(bu 2
  925. Type: Boolean
  926. .RE
  927. .P
  928. Include the workspace root when workspaces are enabled for a command\.
  929. .P
  930. When false, specifying individual workspaces via the \fBworkspace\fP config, or
  931. all workspaces via the \fBworkspaces\fP flag, will cause npm to operate only on
  932. the specified workspaces, and not on the root project\.
  933. <!\-\- automatically generated, do not edit manually \-\->
  934. <!\-\- see lib/utils/config/definitions\.js \-\->
  935. .SS \fBinit\-author\-email\fP
  936. .RS 0
  937. .IP \(bu 2
  938. Default: ""
  939. .IP \(bu 2
  940. Type: String
  941. .RE
  942. .P
  943. The value \fBnpm init\fP should use by default for the package author's email\.
  944. <!\-\- automatically generated, do not edit manually \-\->
  945. <!\-\- see lib/utils/config/definitions\.js \-\->
  946. .SS \fBinit\-author\-name\fP
  947. .RS 0
  948. .IP \(bu 2
  949. Default: ""
  950. .IP \(bu 2
  951. Type: String
  952. .RE
  953. .P
  954. The value \fBnpm init\fP should use by default for the package author's name\.
  955. <!\-\- automatically generated, do not edit manually \-\->
  956. <!\-\- see lib/utils/config/definitions\.js \-\->
  957. .SS \fBinit\-author\-url\fP
  958. .RS 0
  959. .IP \(bu 2
  960. Default: ""
  961. .IP \(bu 2
  962. Type: "" or URL
  963. .RE
  964. .P
  965. The value \fBnpm init\fP should use by default for the package author's
  966. homepage\.
  967. <!\-\- automatically generated, do not edit manually \-\->
  968. <!\-\- see lib/utils/config/definitions\.js \-\->
  969. .SS \fBinit\-license\fP
  970. .RS 0
  971. .IP \(bu 2
  972. Default: "ISC"
  973. .IP \(bu 2
  974. Type: String
  975. .RE
  976. .P
  977. The value \fBnpm init\fP should use by default for the package license\.
  978. <!\-\- automatically generated, do not edit manually \-\->
  979. <!\-\- see lib/utils/config/definitions\.js \-\->
  980. .SS \fBinit\-module\fP
  981. .RS 0
  982. .IP \(bu 2
  983. Default: "~/\.npm\-init\.js"
  984. .IP \(bu 2
  985. Type: Path
  986. .RE
  987. .P
  988. A module that will be loaded by the \fBnpm init\fP command\. See the
  989. documentation for the
  990. init\-package\-json \fIhttps://github\.com/npm/init\-package\-json\fR module for
  991. more information, or npm help init\.
  992. <!\-\- automatically generated, do not edit manually \-\->
  993. <!\-\- see lib/utils/config/definitions\.js \-\->
  994. .SS \fBinit\-version\fP
  995. .RS 0
  996. .IP \(bu 2
  997. Default: "1\.0\.0"
  998. .IP \(bu 2
  999. Type: SemVer string
  1000. .RE
  1001. .P
  1002. The value that \fBnpm init\fP should use by default for the package version
  1003. number, if not already set in package\.json\.
  1004. <!\-\- automatically generated, do not edit manually \-\->
  1005. <!\-\- see lib/utils/config/definitions\.js \-\->
  1006. .SS \fBjson\fP
  1007. .RS 0
  1008. .IP \(bu 2
  1009. Default: false
  1010. .IP \(bu 2
  1011. Type: Boolean
  1012. .RE
  1013. .P
  1014. Whether or not to output JSON data, rather than the normal output\.
  1015. .RS 0
  1016. .IP \(bu 2
  1017. In \fBnpm pkg set\fP it enables parsing set values with JSON\.parse() before
  1018. saving them to your \fBpackage\.json\fP\|\.
  1019. .RE
  1020. .P
  1021. Not supported by all npm commands\.
  1022. <!\-\- automatically generated, do not edit manually \-\->
  1023. <!\-\- see lib/utils/config/definitions\.js \-\->
  1024. .SS \fBkey\fP
  1025. .RS 0
  1026. .IP \(bu 2
  1027. Default: null
  1028. .IP \(bu 2
  1029. Type: null or String
  1030. .RE
  1031. .P
  1032. A client key to pass when accessing the registry\. Values should be in PEM
  1033. format with newlines replaced by the string "\\n"\. For example:
  1034. .P
  1035. .RS 2
  1036. .nf
  1037. key="\-\-\-\-\-BEGIN PRIVATE KEY\-\-\-\-\-\\nXXXX\\nXXXX\\n\-\-\-\-\-END PRIVATE KEY\-\-\-\-\-"
  1038. .fi
  1039. .RE
  1040. .P
  1041. It is \fInot\fR the path to a key file (and there is no "keyfile" option)\.
  1042. <!\-\- automatically generated, do not edit manually \-\->
  1043. <!\-\- see lib/utils/config/definitions\.js \-\->
  1044. .SS \fBlegacy\-bundling\fP
  1045. .RS 0
  1046. .IP \(bu 2
  1047. Default: false
  1048. .IP \(bu 2
  1049. Type: Boolean
  1050. .RE
  1051. .P
  1052. Causes npm to install the package such that versions of npm prior to 1\.4,
  1053. such as the one included with node 0\.8, can install the package\. This
  1054. eliminates all automatic deduping\. If used with \fBglobal\-style\fP this option
  1055. will be preferred\.
  1056. <!\-\- automatically generated, do not edit manually \-\->
  1057. <!\-\- see lib/utils/config/definitions\.js \-\->
  1058. .SS \fBlegacy\-peer\-deps\fP
  1059. .RS 0
  1060. .IP \(bu 2
  1061. Default: false
  1062. .IP \(bu 2
  1063. Type: Boolean
  1064. .RE
  1065. .P
  1066. Causes npm to completely ignore \fBpeerDependencies\fP when building a package
  1067. tree, as in npm versions 3 through 6\.
  1068. .P
  1069. If a package cannot be installed because of overly strict \fBpeerDependencies\fP
  1070. that collide, it provides a way to move forward resolving the situation\.
  1071. .P
  1072. This differs from \fB\-\-omit=peer\fP, in that \fB\-\-omit=peer\fP will avoid unpacking
  1073. \fBpeerDependencies\fP on disk, but will still design a tree such that
  1074. \fBpeerDependencies\fP \fIcould\fR be unpacked in a correct place\.
  1075. .P
  1076. Use of \fBlegacy\-peer\-deps\fP is not recommended, as it will not enforce the
  1077. \fBpeerDependencies\fP contract that meta\-dependencies may rely on\.
  1078. <!\-\- automatically generated, do not edit manually \-\->
  1079. <!\-\- see lib/utils/config/definitions\.js \-\->
  1080. .SS \fBlink\fP
  1081. .RS 0
  1082. .IP \(bu 2
  1083. Default: false
  1084. .IP \(bu 2
  1085. Type: Boolean
  1086. .RE
  1087. .P
  1088. Used with \fBnpm ls\fP, limiting output to only those packages that are linked\.
  1089. <!\-\- automatically generated, do not edit manually \-\->
  1090. <!\-\- see lib/utils/config/definitions\.js \-\->
  1091. .SS \fBlocal\-address\fP
  1092. .RS 0
  1093. .IP \(bu 2
  1094. Default: null
  1095. .IP \(bu 2
  1096. Type: IP Address
  1097. .RE
  1098. .P
  1099. The IP address of the local interface to use when making connections to the
  1100. npm registry\. Must be IPv4 in versions of Node prior to 0\.12\.
  1101. <!\-\- automatically generated, do not edit manually \-\->
  1102. <!\-\- see lib/utils/config/definitions\.js \-\->
  1103. .SS \fBlocation\fP
  1104. .RS 0
  1105. .IP \(bu 2
  1106. Default: "user" unless \fB\-\-global\fP is passed, which will also set this value
  1107. to "global"
  1108. .IP \(bu 2
  1109. Type: "global", "user", or "project"
  1110. .RE
  1111. .P
  1112. When passed to \fBnpm config\fP this refers to which config file to use\.
  1113. <!\-\- automatically generated, do not edit manually \-\->
  1114. <!\-\- see lib/utils/config/definitions\.js \-\->
  1115. .SS \fBlockfile\-version\fP
  1116. .RS 0
  1117. .IP \(bu 2
  1118. Default: Version 2 if no lockfile or current lockfile version less than or
  1119. equal to 2, otherwise maintain current lockfile version
  1120. .IP \(bu 2
  1121. Type: null, 1, 2, 3, "1", "2", or "3"
  1122. .RE
  1123. .P
  1124. Set the lockfile format version to be used in package\-lock\.json and
  1125. npm\-shrinkwrap\-json files\. Possible options are:
  1126. .P
  1127. 1: The lockfile version used by npm versions 5 and 6\. Lacks some data that
  1128. is used during the install, resulting in slower and possibly less
  1129. deterministic installs\. Prevents lockfile churn when interoperating with
  1130. older npm versions\.
  1131. .P
  1132. 2: The default lockfile version used by npm version 7\. Includes both the
  1133. version 1 lockfile data and version 3 lockfile data, for maximum determinism
  1134. and interoperability, at the expense of more bytes on disk\.
  1135. .P
  1136. 3: Only the new lockfile information introduced in npm version 7\. Smaller on
  1137. disk than lockfile version 2, but not interoperable with older npm versions\.
  1138. Ideal if all users are on npm version 7 and higher\.
  1139. <!\-\- automatically generated, do not edit manually \-\->
  1140. <!\-\- see lib/utils/config/definitions\.js \-\->
  1141. .SS \fBloglevel\fP
  1142. .RS 0
  1143. .IP \(bu 2
  1144. Default: "notice"
  1145. .IP \(bu 2
  1146. Type: "silent", "error", "warn", "notice", "http", "timing", "info",
  1147. "verbose", or "silly"
  1148. .RE
  1149. .P
  1150. What level of logs to report\. On failure, \fIall\fR logs are written to
  1151. \fBnpm\-debug\.log\fP in the current working directory\.
  1152. .P
  1153. Any logs of a higher level than the setting are shown\. The default is
  1154. "notice"\.
  1155. .P
  1156. See also the \fBforeground\-scripts\fP config\.
  1157. <!\-\- automatically generated, do not edit manually \-\->
  1158. <!\-\- see lib/utils/config/definitions\.js \-\->
  1159. .SS \fBlogs\-max\fP
  1160. .RS 0
  1161. .IP \(bu 2
  1162. Default: 10
  1163. .IP \(bu 2
  1164. Type: Number
  1165. .RE
  1166. .P
  1167. The maximum number of log files to store\.
  1168. <!\-\- automatically generated, do not edit manually \-\->
  1169. <!\-\- see lib/utils/config/definitions\.js \-\->
  1170. .SS \fBlong\fP
  1171. .RS 0
  1172. .IP \(bu 2
  1173. Default: false
  1174. .IP \(bu 2
  1175. Type: Boolean
  1176. .RE
  1177. .P
  1178. Show extended information in \fBls\fP, \fBsearch\fP, and \fBhelp\-search\fP\|\.
  1179. <!\-\- automatically generated, do not edit manually \-\->
  1180. <!\-\- see lib/utils/config/definitions\.js \-\->
  1181. .SS \fBmaxsockets\fP
  1182. .RS 0
  1183. .IP \(bu 2
  1184. Default: 15
  1185. .IP \(bu 2
  1186. Type: Number
  1187. .RE
  1188. .P
  1189. The maximum number of connections to use per origin (protocol/host/port
  1190. combination)\.
  1191. <!\-\- automatically generated, do not edit manually \-\->
  1192. <!\-\- see lib/utils/config/definitions\.js \-\->
  1193. .SS \fBmessage\fP
  1194. .RS 0
  1195. .IP \(bu 2
  1196. Default: "%s"
  1197. .IP \(bu 2
  1198. Type: String
  1199. .RE
  1200. .P
  1201. Commit message which is used by \fBnpm version\fP when creating version commit\.
  1202. .P
  1203. Any "%s" in the message will be replaced with the version number\.
  1204. <!\-\- automatically generated, do not edit manually \-\->
  1205. <!\-\- see lib/utils/config/definitions\.js \-\->
  1206. .SS \fBnode\-options\fP
  1207. .RS 0
  1208. .IP \(bu 2
  1209. Default: null
  1210. .IP \(bu 2
  1211. Type: null or String
  1212. .RE
  1213. .P
  1214. Options to pass through to Node\.js via the \fBNODE_OPTIONS\fP environment
  1215. variable\. This does not impact how npm itself is executed but it does impact
  1216. how lifecycle scripts are called\.
  1217. <!\-\- automatically generated, do not edit manually \-\->
  1218. <!\-\- see lib/utils/config/definitions\.js \-\->
  1219. .SS \fBnode\-version\fP
  1220. .RS 0
  1221. .IP \(bu 2
  1222. Default: Node\.js \fBprocess\.version\fP value
  1223. .IP \(bu 2
  1224. Type: SemVer string
  1225. .RE
  1226. .P
  1227. The node version to use when checking a package's \fBengines\fP setting\.
  1228. <!\-\- automatically generated, do not edit manually \-\->
  1229. <!\-\- see lib/utils/config/definitions\.js \-\->
  1230. .SS \fBnoproxy\fP
  1231. .RS 0
  1232. .IP \(bu 2
  1233. Default: The value of the NO_PROXY environment variable
  1234. .IP \(bu 2
  1235. Type: String (can be set multiple times)
  1236. .RE
  1237. .P
  1238. Domain extensions that should bypass any proxies\.
  1239. .P
  1240. Also accepts a comma\-delimited string\.
  1241. <!\-\- automatically generated, do not edit manually \-\->
  1242. <!\-\- see lib/utils/config/definitions\.js \-\->
  1243. .SS \fBnpm\-version\fP
  1244. .RS 0
  1245. .IP \(bu 2
  1246. Default: Output of \fBnpm \-\-version\fP
  1247. .IP \(bu 2
  1248. Type: SemVer string
  1249. .RE
  1250. .P
  1251. The npm version to use when checking a package's \fBengines\fP setting\.
  1252. <!\-\- automatically generated, do not edit manually \-\->
  1253. <!\-\- see lib/utils/config/definitions\.js \-\->
  1254. .SS \fBoffline\fP
  1255. .RS 0
  1256. .IP \(bu 2
  1257. Default: false
  1258. .IP \(bu 2
  1259. Type: Boolean
  1260. .RE
  1261. .P
  1262. Force offline mode: no network requests will be done during install\. To
  1263. allow the CLI to fill in missing cache data, see \fB\-\-prefer\-offline\fP\|\.
  1264. <!\-\- automatically generated, do not edit manually \-\->
  1265. <!\-\- see lib/utils/config/definitions\.js \-\->
  1266. .SS \fBomit\fP
  1267. .RS 0
  1268. .IP \(bu 2
  1269. Default: 'dev' if the \fBNODE_ENV\fP environment variable is set to
  1270. \|'production', otherwise empty\.
  1271. .IP \(bu 2
  1272. Type: "dev", "optional", or "peer" (can be set multiple times)
  1273. .RE
  1274. .P
  1275. Dependency types to omit from the installation tree on disk\.
  1276. .P
  1277. Note that these dependencies \fIare\fR still resolved and added to the
  1278. \fBpackage\-lock\.json\fP or \fBnpm\-shrinkwrap\.json\fP file\. They are just not
  1279. physically installed on disk\.
  1280. .P
  1281. If a package type appears in both the \fB\-\-include\fP and \fB\-\-omit\fP lists, then
  1282. it will be included\.
  1283. .P
  1284. If the resulting omit list includes \fB\|'dev'\fP, then the \fBNODE_ENV\fP environment
  1285. variable will be set to \fB\|'production'\fP for all lifecycle scripts\.
  1286. <!\-\- automatically generated, do not edit manually \-\->
  1287. <!\-\- see lib/utils/config/definitions\.js \-\->
  1288. .SS \fBotp\fP
  1289. .RS 0
  1290. .IP \(bu 2
  1291. Default: null
  1292. .IP \(bu 2
  1293. Type: null or String
  1294. .RE
  1295. .P
  1296. This is a one\-time password from a two\-factor authenticator\. It's needed
  1297. when publishing or changing package permissions with \fBnpm access\fP\|\.
  1298. .P
  1299. If not set, and a registry response fails with a challenge for a one\-time
  1300. password, npm will prompt on the command line for one\.
  1301. <!\-\- automatically generated, do not edit manually \-\->
  1302. <!\-\- see lib/utils/config/definitions\.js \-\->
  1303. .SS \fBpack\-destination\fP
  1304. .RS 0
  1305. .IP \(bu 2
  1306. Default: "\."
  1307. .IP \(bu 2
  1308. Type: String
  1309. .RE
  1310. .P
  1311. Directory in which \fBnpm pack\fP will save tarballs\.
  1312. <!\-\- automatically generated, do not edit manually \-\->
  1313. <!\-\- see lib/utils/config/definitions\.js \-\->
  1314. .SS \fBpackage\fP
  1315. .RS 0
  1316. .IP \(bu 2
  1317. Default:
  1318. .IP \(bu 2
  1319. Type: String (can be set multiple times)
  1320. .RE
  1321. .P
  1322. The package to install for npm help \fBexec\fP
  1323. <!\-\- automatically generated, do not edit manually \-\->
  1324. <!\-\- see lib/utils/config/definitions\.js \-\->
  1325. .SS \fBpackage\-lock\fP
  1326. .RS 0
  1327. .IP \(bu 2
  1328. Default: true
  1329. .IP \(bu 2
  1330. Type: Boolean
  1331. .RE
  1332. .P
  1333. If set to false, then ignore \fBpackage\-lock\.json\fP files when installing\. This
  1334. will also prevent \fIwriting\fR \fBpackage\-lock\.json\fP if \fBsave\fP is true\.
  1335. .P
  1336. When package package\-locks are disabled, automatic pruning of extraneous
  1337. modules will also be disabled\. To remove extraneous modules with
  1338. package\-locks disabled use \fBnpm prune\fP\|\.
  1339. <!\-\- automatically generated, do not edit manually \-\->
  1340. <!\-\- see lib/utils/config/definitions\.js \-\->
  1341. .SS \fBpackage\-lock\-only\fP
  1342. .RS 0
  1343. .IP \(bu 2
  1344. Default: false
  1345. .IP \(bu 2
  1346. Type: Boolean
  1347. .RE
  1348. .P
  1349. If set to true, the current operation will only use the \fBpackage\-lock\.json\fP,
  1350. ignoring \fBnode_modules\fP\|\.
  1351. .P
  1352. For \fBupdate\fP this means only the \fBpackage\-lock\.json\fP will be updated,
  1353. instead of checking \fBnode_modules\fP and downloading dependencies\.
  1354. .P
  1355. For \fBlist\fP this means the output will be based on the tree described by the
  1356. \fBpackage\-lock\.json\fP, rather than the contents of \fBnode_modules\fP\|\.
  1357. <!\-\- automatically generated, do not edit manually \-\->
  1358. <!\-\- see lib/utils/config/definitions\.js \-\->
  1359. .SS \fBparseable\fP
  1360. .RS 0
  1361. .IP \(bu 2
  1362. Default: false
  1363. .IP \(bu 2
  1364. Type: Boolean
  1365. .RE
  1366. .P
  1367. Output parseable results from commands that write to standard output\. For
  1368. \fBnpm search\fP, this will be tab\-separated table format\.
  1369. <!\-\- automatically generated, do not edit manually \-\->
  1370. <!\-\- see lib/utils/config/definitions\.js \-\->
  1371. .SS \fBprefer\-offline\fP
  1372. .RS 0
  1373. .IP \(bu 2
  1374. Default: false
  1375. .IP \(bu 2
  1376. Type: Boolean
  1377. .RE
  1378. .P
  1379. If true, staleness checks for cached data will be bypassed, but missing data
  1380. will be requested from the server\. To force full offline mode, use
  1381. \fB\-\-offline\fP\|\.
  1382. <!\-\- automatically generated, do not edit manually \-\->
  1383. <!\-\- see lib/utils/config/definitions\.js \-\->
  1384. .SS \fBprefer\-online\fP
  1385. .RS 0
  1386. .IP \(bu 2
  1387. Default: false
  1388. .IP \(bu 2
  1389. Type: Boolean
  1390. .RE
  1391. .P
  1392. If true, staleness checks for cached data will be forced, making the CLI
  1393. look for updates immediately even for fresh package data\.
  1394. <!\-\- automatically generated, do not edit manually \-\->
  1395. <!\-\- see lib/utils/config/definitions\.js \-\->
  1396. .SS \fBprefix\fP
  1397. .RS 0
  1398. .IP \(bu 2
  1399. Default: In global mode, the folder where the node executable is installed\.
  1400. In local mode, the nearest parent folder containing either a package\.json
  1401. file or a node_modules folder\.
  1402. .IP \(bu 2
  1403. Type: Path
  1404. .RE
  1405. .P
  1406. The location to install global items\. If set on the command line, then it
  1407. forces non\-global commands to run in the specified folder\.
  1408. <!\-\- automatically generated, do not edit manually \-\->
  1409. <!\-\- see lib/utils/config/definitions\.js \-\->
  1410. .SS \fBpreid\fP
  1411. .RS 0
  1412. .IP \(bu 2
  1413. Default: ""
  1414. .IP \(bu 2
  1415. Type: String
  1416. .RE
  1417. .P
  1418. The "prerelease identifier" to use as a prefix for the "prerelease" part of
  1419. a semver\. Like the \fBrc\fP in \fB1\.2\.0\-rc\.8\fP\|\.
  1420. <!\-\- automatically generated, do not edit manually \-\->
  1421. <!\-\- see lib/utils/config/definitions\.js \-\->
  1422. .SS \fBprogress\fP
  1423. .RS 0
  1424. .IP \(bu 2
  1425. Default: \fBtrue\fP unless running in a known CI system
  1426. .IP \(bu 2
  1427. Type: Boolean
  1428. .RE
  1429. .P
  1430. When set to \fBtrue\fP, npm will display a progress bar during time intensive
  1431. operations, if \fBprocess\.stderr\fP is a TTY\.
  1432. .P
  1433. Set to \fBfalse\fP to suppress the progress bar\.
  1434. <!\-\- automatically generated, do not edit manually \-\->
  1435. <!\-\- see lib/utils/config/definitions\.js \-\->
  1436. .SS \fBproxy\fP
  1437. .RS 0
  1438. .IP \(bu 2
  1439. Default: null
  1440. .IP \(bu 2
  1441. Type: null, false, or URL
  1442. .RE
  1443. .P
  1444. A proxy to use for outgoing http requests\. If the \fBHTTP_PROXY\fP or
  1445. \fBhttp_proxy\fP environment variables are set, proxy settings will be honored
  1446. by the underlying \fBrequest\fP library\.
  1447. <!\-\- automatically generated, do not edit manually \-\->
  1448. <!\-\- see lib/utils/config/definitions\.js \-\->
  1449. .SS \fBread\-only\fP
  1450. .RS 0
  1451. .IP \(bu 2
  1452. Default: false
  1453. .IP \(bu 2
  1454. Type: Boolean
  1455. .RE
  1456. .P
  1457. This is used to mark a token as unable to publish when configuring limited
  1458. access tokens with the \fBnpm token create\fP command\.
  1459. <!\-\- automatically generated, do not edit manually \-\->
  1460. <!\-\- see lib/utils/config/definitions\.js \-\->
  1461. .SS \fBrebuild\-bundle\fP
  1462. .RS 0
  1463. .IP \(bu 2
  1464. Default: true
  1465. .IP \(bu 2
  1466. Type: Boolean
  1467. .RE
  1468. .P
  1469. Rebuild bundled dependencies after installation\.
  1470. <!\-\- automatically generated, do not edit manually \-\->
  1471. <!\-\- see lib/utils/config/definitions\.js \-\->
  1472. .SS \fBregistry\fP
  1473. .RS 0
  1474. .IP \(bu 2
  1475. Default: "https://registry\.npmjs\.org/"
  1476. .IP \(bu 2
  1477. Type: URL
  1478. .RE
  1479. .P
  1480. The base URL of the npm registry\.
  1481. <!\-\- automatically generated, do not edit manually \-\->
  1482. <!\-\- see lib/utils/config/definitions\.js \-\->
  1483. .SS \fBsave\fP
  1484. .RS 0
  1485. .IP \(bu 2
  1486. Default: true
  1487. .IP \(bu 2
  1488. Type: Boolean
  1489. .RE
  1490. .P
  1491. Save installed packages to a package\.json file as dependencies\.
  1492. .P
  1493. When used with the \fBnpm rm\fP command, removes the dependency from
  1494. package\.json\.
  1495. <!\-\- automatically generated, do not edit manually \-\->
  1496. <!\-\- see lib/utils/config/definitions\.js \-\->
  1497. .SS \fBsave\-bundle\fP
  1498. .RS 0
  1499. .IP \(bu 2
  1500. Default: false
  1501. .IP \(bu 2
  1502. Type: Boolean
  1503. .RE
  1504. .P
  1505. If a package would be saved at install time by the use of \fB\-\-save\fP,
  1506. \fB\-\-save\-dev\fP, or \fB\-\-save\-optional\fP, then also put it in the
  1507. \fBbundleDependencies\fP list\.
  1508. .P
  1509. Ignore if \fB\-\-save\-peer\fP is set, since peerDependencies cannot be bundled\.
  1510. <!\-\- automatically generated, do not edit manually \-\->
  1511. <!\-\- see lib/utils/config/definitions\.js \-\->
  1512. .SS \fBsave\-dev\fP
  1513. .RS 0
  1514. .IP \(bu 2
  1515. Default: false
  1516. .IP \(bu 2
  1517. Type: Boolean
  1518. .RE
  1519. .P
  1520. Save installed packages to a package\.json file as \fBdevDependencies\fP\|\.
  1521. <!\-\- automatically generated, do not edit manually \-\->
  1522. <!\-\- see lib/utils/config/definitions\.js \-\->
  1523. .SS \fBsave\-exact\fP
  1524. .RS 0
  1525. .IP \(bu 2
  1526. Default: false
  1527. .IP \(bu 2
  1528. Type: Boolean
  1529. .RE
  1530. .P
  1531. Dependencies saved to package\.json will be configured with an exact version
  1532. rather than using npm's default semver range operator\.
  1533. <!\-\- automatically generated, do not edit manually \-\->
  1534. <!\-\- see lib/utils/config/definitions\.js \-\->
  1535. .SS \fBsave\-optional\fP
  1536. .RS 0
  1537. .IP \(bu 2
  1538. Default: false
  1539. .IP \(bu 2
  1540. Type: Boolean
  1541. .RE
  1542. .P
  1543. Save installed packages to a package\.json file as \fBoptionalDependencies\fP\|\.
  1544. <!\-\- automatically generated, do not edit manually \-\->
  1545. <!\-\- see lib/utils/config/definitions\.js \-\->
  1546. .SS \fBsave\-peer\fP
  1547. .RS 0
  1548. .IP \(bu 2
  1549. Default: false
  1550. .IP \(bu 2
  1551. Type: Boolean
  1552. .RE
  1553. .P
  1554. Save installed packages\. to a package\.json file as \fBpeerDependencies\fP
  1555. <!\-\- automatically generated, do not edit manually \-\->
  1556. <!\-\- see lib/utils/config/definitions\.js \-\->
  1557. .SS \fBsave\-prefix\fP
  1558. .RS 0
  1559. .IP \(bu 2
  1560. Default: "^"
  1561. .IP \(bu 2
  1562. Type: String
  1563. .RE
  1564. .P
  1565. Configure how versions of packages installed to a package\.json file via
  1566. \fB\-\-save\fP or \fB\-\-save\-dev\fP get prefixed\.
  1567. .P
  1568. For example if a package has version \fB1\.2\.3\fP, by default its version is set
  1569. to \fB^1\.2\.3\fP which allows minor upgrades for that package, but after \fBnpm
  1570. config set save\-prefix='~'\fP it would be set to \fB~1\.2\.3\fP which only allows
  1571. patch upgrades\.
  1572. <!\-\- automatically generated, do not edit manually \-\->
  1573. <!\-\- see lib/utils/config/definitions\.js \-\->
  1574. .SS \fBsave\-prod\fP
  1575. .RS 0
  1576. .IP \(bu 2
  1577. Default: false
  1578. .IP \(bu 2
  1579. Type: Boolean
  1580. .RE
  1581. .P
  1582. Save installed packages into \fBdependencies\fP specifically\. This is useful if
  1583. a package already exists in \fBdevDependencies\fP or \fBoptionalDependencies\fP, but
  1584. you want to move it to be a non\-optional production dependency\.
  1585. .P
  1586. This is the default behavior if \fB\-\-save\fP is true, and neither \fB\-\-save\-dev\fP
  1587. or \fB\-\-save\-optional\fP are true\.
  1588. <!\-\- automatically generated, do not edit manually \-\->
  1589. <!\-\- see lib/utils/config/definitions\.js \-\->
  1590. .SS \fBscope\fP
  1591. .RS 0
  1592. .IP \(bu 2
  1593. Default: the scope of the current project, if any, or ""
  1594. .IP \(bu 2
  1595. Type: String
  1596. .RE
  1597. .P
  1598. Associate an operation with a scope for a scoped registry\.
  1599. .P
  1600. Useful when logging in to or out of a private registry:
  1601. .P
  1602. .RS 2
  1603. .nf
  1604. # log in, linking the scope to the custom registry
  1605. npm login \-\-scope=@mycorp \-\-registry=https://registry\.mycorp\.com
  1606. # log out, removing the link and the auth token
  1607. npm logout \-\-scope=@mycorp
  1608. .fi
  1609. .RE
  1610. .P
  1611. This will cause \fB@mycorp\fP to be mapped to the registry for future
  1612. installation of packages specified according to the pattern
  1613. \fB@mycorp/package\fP\|\.
  1614. .P
  1615. This will also cause \fBnpm init\fP to create a scoped package\.
  1616. .P
  1617. .RS 2
  1618. .nf
  1619. # accept all defaults, and create a package named "@foo/whatever",
  1620. # instead of just named "whatever"
  1621. npm init \-\-scope=@foo \-\-yes
  1622. .fi
  1623. .RE
  1624. <!\-\- automatically generated, do not edit manually \-\->
  1625. <!\-\- see lib/utils/config/definitions\.js \-\->
  1626. .SS \fBscript\-shell\fP
  1627. .RS 0
  1628. .IP \(bu 2
  1629. Default: '/bin/sh' on POSIX systems, 'cmd\.exe' on Windows
  1630. .IP \(bu 2
  1631. Type: null or String
  1632. .RE
  1633. .P
  1634. The shell to use for scripts run with the \fBnpm exec\fP, \fBnpm run\fP and \fBnpm
  1635. init <pkg>\fP commands\.
  1636. <!\-\- automatically generated, do not edit manually \-\->
  1637. <!\-\- see lib/utils/config/definitions\.js \-\->
  1638. .SS \fBsearchexclude\fP
  1639. .RS 0
  1640. .IP \(bu 2
  1641. Default: ""
  1642. .IP \(bu 2
  1643. Type: String
  1644. .RE
  1645. .P
  1646. Space\-separated options that limit the results from search\.
  1647. <!\-\- automatically generated, do not edit manually \-\->
  1648. <!\-\- see lib/utils/config/definitions\.js \-\->
  1649. .SS \fBsearchlimit\fP
  1650. .RS 0
  1651. .IP \(bu 2
  1652. Default: 20
  1653. .IP \(bu 2
  1654. Type: Number
  1655. .RE
  1656. .P
  1657. Number of items to limit search results to\. Will not apply at all to legacy
  1658. searches\.
  1659. <!\-\- automatically generated, do not edit manually \-\->
  1660. <!\-\- see lib/utils/config/definitions\.js \-\->
  1661. .SS \fBsearchopts\fP
  1662. .RS 0
  1663. .IP \(bu 2
  1664. Default: ""
  1665. .IP \(bu 2
  1666. Type: String
  1667. .RE
  1668. .P
  1669. Space\-separated options that are always passed to search\.
  1670. <!\-\- automatically generated, do not edit manually \-\->
  1671. <!\-\- see lib/utils/config/definitions\.js \-\->
  1672. .SS \fBsearchstaleness\fP
  1673. .RS 0
  1674. .IP \(bu 2
  1675. Default: 900
  1676. .IP \(bu 2
  1677. Type: Number
  1678. .RE
  1679. .P
  1680. The age of the cache, in seconds, before another registry request is made if
  1681. using legacy search endpoint\.
  1682. <!\-\- automatically generated, do not edit manually \-\->
  1683. <!\-\- see lib/utils/config/definitions\.js \-\->
  1684. .SS \fBshell\fP
  1685. .RS 0
  1686. .IP \(bu 2
  1687. Default: SHELL environment variable, or "bash" on Posix, or "cmd\.exe" on
  1688. Windows
  1689. .IP \(bu 2
  1690. Type: String
  1691. .RE
  1692. .P
  1693. The shell to run for the \fBnpm explore\fP command\.
  1694. <!\-\- automatically generated, do not edit manually \-\->
  1695. <!\-\- see lib/utils/config/definitions\.js \-\->
  1696. .SS \fBsign\-git\-commit\fP
  1697. .RS 0
  1698. .IP \(bu 2
  1699. Default: false
  1700. .IP \(bu 2
  1701. Type: Boolean
  1702. .RE
  1703. .P
  1704. If set to true, then the \fBnpm version\fP command will commit the new package
  1705. version using \fB\-S\fP to add a signature\.
  1706. .P
  1707. Note that git requires you to have set up GPG keys in your git configs for
  1708. this to work properly\.
  1709. <!\-\- automatically generated, do not edit manually \-\->
  1710. <!\-\- see lib/utils/config/definitions\.js \-\->
  1711. .SS \fBsign\-git\-tag\fP
  1712. .RS 0
  1713. .IP \(bu 2
  1714. Default: false
  1715. .IP \(bu 2
  1716. Type: Boolean
  1717. .RE
  1718. .P
  1719. If set to true, then the \fBnpm version\fP command will tag the version using
  1720. \fB\-s\fP to add a signature\.
  1721. .P
  1722. Note that git requires you to have set up GPG keys in your git configs for
  1723. this to work properly\.
  1724. <!\-\- automatically generated, do not edit manually \-\->
  1725. <!\-\- see lib/utils/config/definitions\.js \-\->
  1726. .SS \fBstrict\-peer\-deps\fP
  1727. .RS 0
  1728. .IP \(bu 2
  1729. Default: false
  1730. .IP \(bu 2
  1731. Type: Boolean
  1732. .RE
  1733. .P
  1734. If set to \fBtrue\fP, and \fB\-\-legacy\-peer\-deps\fP is not set, then \fIany\fR
  1735. conflicting \fBpeerDependencies\fP will be treated as an install failure, even
  1736. if npm could reasonably guess the appropriate resolution based on non\-peer
  1737. dependency relationships\.
  1738. .P
  1739. By default, conflicting \fBpeerDependencies\fP deep in the dependency graph will
  1740. be resolved using the nearest non\-peer dependency specification, even if
  1741. doing so will result in some packages receiving a peer dependency outside
  1742. the range set in their package's \fBpeerDependencies\fP object\.
  1743. .P
  1744. When such and override is performed, a warning is printed, explaining the
  1745. conflict and the packages involved\. If \fB\-\-strict\-peer\-deps\fP is set, then
  1746. this warning is treated as a failure\.
  1747. <!\-\- automatically generated, do not edit manually \-\->
  1748. <!\-\- see lib/utils/config/definitions\.js \-\->
  1749. .SS \fBstrict\-ssl\fP
  1750. .RS 0
  1751. .IP \(bu 2
  1752. Default: true
  1753. .IP \(bu 2
  1754. Type: Boolean
  1755. .RE
  1756. .P
  1757. Whether or not to do SSL key validation when making requests to the registry
  1758. via https\.
  1759. .P
  1760. See also the \fBca\fP config\.
  1761. <!\-\- automatically generated, do not edit manually \-\->
  1762. <!\-\- see lib/utils/config/definitions\.js \-\->
  1763. .SS \fBtag\fP
  1764. .RS 0
  1765. .IP \(bu 2
  1766. Default: "latest"
  1767. .IP \(bu 2
  1768. Type: String
  1769. .RE
  1770. .P
  1771. If you ask npm to install a package and don't tell it a specific version,
  1772. then it will install the specified tag\.
  1773. .P
  1774. Also the tag that is added to the package@version specified by the \fBnpm tag\fP
  1775. command, if no explicit tag is given\.
  1776. .P
  1777. When used by the \fBnpm diff\fP command, this is the tag used to fetch the
  1778. tarball that will be compared with the local files by default\.
  1779. <!\-\- automatically generated, do not edit manually \-\->
  1780. <!\-\- see lib/utils/config/definitions\.js \-\->
  1781. .SS \fBtag\-version\-prefix\fP
  1782. .RS 0
  1783. .IP \(bu 2
  1784. Default: "v"
  1785. .IP \(bu 2
  1786. Type: String
  1787. .RE
  1788. .P
  1789. If set, alters the prefix used when tagging a new version when performing a
  1790. version increment using \fBnpm\-version\fP\|\. To remove the prefix altogether, set
  1791. it to the empty string: \fB""\fP\|\.
  1792. .P
  1793. Because other tools may rely on the convention that npm version tags look
  1794. like \fBv1\.0\.0\fP, \fIonly use this property if it is absolutely necessary\fR\|\. In
  1795. particular, use care when overriding this setting for public packages\.
  1796. <!\-\- automatically generated, do not edit manually \-\->
  1797. <!\-\- see lib/utils/config/definitions\.js \-\->
  1798. .SS \fBtiming\fP
  1799. .RS 0
  1800. .IP \(bu 2
  1801. Default: false
  1802. .IP \(bu 2
  1803. Type: Boolean
  1804. .RE
  1805. .P
  1806. If true, writes an \fBnpm\-debug\fP log to \fB_logs\fP and timing information to
  1807. \fB_timing\.json\fP, both in your cache, even if the command completes
  1808. successfully\. \fB_timing\.json\fP is a newline delimited list of JSON objects\.
  1809. .P
  1810. You can quickly view it with this json \fIhttps://npm\.im/json\fR command line:
  1811. \fBnpm exec \-\- json \-g < ~/\.npm/_timing\.json\fP\|\.
  1812. <!\-\- automatically generated, do not edit manually \-\->
  1813. <!\-\- see lib/utils/config/definitions\.js \-\->
  1814. .SS \fBumask\fP
  1815. .RS 0
  1816. .IP \(bu 2
  1817. Default: 0
  1818. .IP \(bu 2
  1819. Type: Octal numeric string in range 0000\.\.0777 (0\.\.511)
  1820. .RE
  1821. .P
  1822. The "umask" value to use when setting the file creation mode on files and
  1823. folders\.
  1824. .P
  1825. Folders and executables are given a mode which is \fB0o777\fP masked against
  1826. this value\. Other files are given a mode which is \fB0o666\fP masked against
  1827. this value\.
  1828. .P
  1829. Note that the underlying system will \fIalso\fR apply its own umask value to
  1830. files and folders that are created, and npm does not circumvent this, but
  1831. rather adds the \fB\-\-umask\fP config to it\.
  1832. .P
  1833. Thus, the effective default umask value on most POSIX systems is 0o22,
  1834. meaning that folders and executables are created with a mode of 0o755 and
  1835. other files are created with a mode of 0o644\.
  1836. <!\-\- automatically generated, do not edit manually \-\->
  1837. <!\-\- see lib/utils/config/definitions\.js \-\->
  1838. .SS \fBunicode\fP
  1839. .RS 0
  1840. .IP \(bu 2
  1841. Default: false on windows, true on mac/unix systems with a unicode locale,
  1842. as defined by the \fBLC_ALL\fP, \fBLC_CTYPE\fP, or \fBLANG\fP environment variables\.
  1843. .IP \(bu 2
  1844. Type: Boolean
  1845. .RE
  1846. .P
  1847. When set to true, npm uses unicode characters in the tree output\. When
  1848. false, it uses ascii characters instead of unicode glyphs\.
  1849. <!\-\- automatically generated, do not edit manually \-\->
  1850. <!\-\- see lib/utils/config/definitions\.js \-\->
  1851. .SS \fBupdate\-notifier\fP
  1852. .RS 0
  1853. .IP \(bu 2
  1854. Default: true
  1855. .IP \(bu 2
  1856. Type: Boolean
  1857. .RE
  1858. .P
  1859. Set to false to suppress the update notification when using an older version
  1860. of npm than the latest\.
  1861. <!\-\- automatically generated, do not edit manually \-\->
  1862. <!\-\- see lib/utils/config/definitions\.js \-\->
  1863. .SS \fBusage\fP
  1864. .RS 0
  1865. .IP \(bu 2
  1866. Default: false
  1867. .IP \(bu 2
  1868. Type: Boolean
  1869. .RE
  1870. .P
  1871. Show short usage output about the command specified\.
  1872. <!\-\- automatically generated, do not edit manually \-\->
  1873. <!\-\- see lib/utils/config/definitions\.js \-\->
  1874. .SS \fBuser\-agent\fP
  1875. .RS 0
  1876. .IP \(bu 2
  1877. Default: "npm/{npm\-version} node/{node\-version} {platform} {arch}
  1878. workspaces/{workspaces} {ci}"
  1879. .IP \(bu 2
  1880. Type: String
  1881. .RE
  1882. .P
  1883. Sets the User\-Agent request header\. The following fields are replaced with
  1884. their actual counterparts:
  1885. .RS 0
  1886. .IP \(bu 2
  1887. \fB{npm\-version}\fP \- The npm version in use
  1888. .IP \(bu 2
  1889. \fB{node\-version}\fP \- The Node\.js version in use
  1890. .IP \(bu 2
  1891. \fB{platform}\fP \- The value of \fBprocess\.platform\fP
  1892. .IP \(bu 2
  1893. \fB{arch}\fP \- The value of \fBprocess\.arch\fP
  1894. .IP \(bu 2
  1895. \fB{workspaces}\fP \- Set to \fBtrue\fP if the \fBworkspaces\fP or \fBworkspace\fP options
  1896. are set\.
  1897. .IP \(bu 2
  1898. \fB{ci}\fP \- The value of the \fBci\-name\fP config, if set, prefixed with \fBci/\fP, or
  1899. an empty string if \fBci\-name\fP is empty\.
  1900. .RE
  1901. <!\-\- automatically generated, do not edit manually \-\->
  1902. <!\-\- see lib/utils/config/definitions\.js \-\->
  1903. .SS \fBuserconfig\fP
  1904. .RS 0
  1905. .IP \(bu 2
  1906. Default: "~/\.npmrc"
  1907. .IP \(bu 2
  1908. Type: Path
  1909. .RE
  1910. .P
  1911. The location of user\-level configuration settings\.
  1912. .P
  1913. This may be overridden by the \fBnpm_config_userconfig\fP environment variable
  1914. or the \fB\-\-userconfig\fP command line option, but may \fInot\fR be overridden by
  1915. settings in the \fBglobalconfig\fP file\.
  1916. <!\-\- automatically generated, do not edit manually \-\->
  1917. <!\-\- see lib/utils/config/definitions\.js \-\->
  1918. .SS \fBversion\fP
  1919. .RS 0
  1920. .IP \(bu 2
  1921. Default: false
  1922. .IP \(bu 2
  1923. Type: Boolean
  1924. .RE
  1925. .P
  1926. If true, output the npm version and exit successfully\.
  1927. .P
  1928. Only relevant when specified explicitly on the command line\.
  1929. <!\-\- automatically generated, do not edit manually \-\->
  1930. <!\-\- see lib/utils/config/definitions\.js \-\->
  1931. .SS \fBversions\fP
  1932. .RS 0
  1933. .IP \(bu 2
  1934. Default: false
  1935. .IP \(bu 2
  1936. Type: Boolean
  1937. .RE
  1938. .P
  1939. If true, output the npm version as well as node's \fBprocess\.versions\fP map and
  1940. the version in the current working directory's \fBpackage\.json\fP file if one
  1941. exists, and exit successfully\.
  1942. .P
  1943. Only relevant when specified explicitly on the command line\.
  1944. <!\-\- automatically generated, do not edit manually \-\->
  1945. <!\-\- see lib/utils/config/definitions\.js \-\->
  1946. .SS \fBviewer\fP
  1947. .RS 0
  1948. .IP \(bu 2
  1949. Default: "man" on Posix, "browser" on Windows
  1950. .IP \(bu 2
  1951. Type: String
  1952. .RE
  1953. .P
  1954. The program to use to view help content\.
  1955. .P
  1956. Set to \fB"browser"\fP to view html help content in the default web browser\.
  1957. <!\-\- automatically generated, do not edit manually \-\->
  1958. <!\-\- see lib/utils/config/definitions\.js \-\->
  1959. .SS \fBwhich\fP
  1960. .RS 0
  1961. .IP \(bu 2
  1962. Default: null
  1963. .IP \(bu 2
  1964. Type: null or Number
  1965. .RE
  1966. .P
  1967. If there are multiple funding sources, which 1\-indexed source URL to open\.
  1968. <!\-\- automatically generated, do not edit manually \-\->
  1969. <!\-\- see lib/utils/config/definitions\.js \-\->
  1970. .SS \fBworkspace\fP
  1971. .RS 0
  1972. .IP \(bu 2
  1973. Default:
  1974. .IP \(bu 2
  1975. Type: String (can be set multiple times)
  1976. .RE
  1977. .P
  1978. Enable running a command in the context of the configured workspaces of the
  1979. current project while filtering by running only the workspaces defined by
  1980. this configuration option\.
  1981. .P
  1982. Valid values for the \fBworkspace\fP config are either:
  1983. .RS 0
  1984. .IP \(bu 2
  1985. Workspace names
  1986. .IP \(bu 2
  1987. Path to a workspace directory
  1988. .IP \(bu 2
  1989. Path to a parent workspace directory (will result in selecting all
  1990. workspaces within that folder)
  1991. .RE
  1992. .P
  1993. When set for the \fBnpm init\fP command, this may be set to the folder of a
  1994. workspace which does not yet exist, to create the folder and set it up as a
  1995. brand new workspace within the project\.
  1996. .P
  1997. This value is not exported to the environment for child processes\.
  1998. <!\-\- automatically generated, do not edit manually \-\->
  1999. <!\-\- see lib/utils/config/definitions\.js \-\->
  2000. .SS \fBworkspaces\fP
  2001. .RS 0
  2002. .IP \(bu 2
  2003. Default: null
  2004. .IP \(bu 2
  2005. Type: null or Boolean
  2006. .RE
  2007. .P
  2008. Set to true to run the command in the context of \fBall\fR configured
  2009. workspaces\.
  2010. .P
  2011. Explicitly setting this to false will cause commands like \fBinstall\fP to
  2012. ignore workspaces altogether\. When not set explicitly:
  2013. .RS 0
  2014. .IP \(bu 2
  2015. Commands that operate on the \fBnode_modules\fP tree (install, update, etc\.)
  2016. will link workspaces into the \fBnode_modules\fP folder\. \- Commands that do
  2017. other things (test, exec, publish, etc\.) will operate on the root project,
  2018. \fIunless\fR one or more workspaces are specified in the \fBworkspace\fP config\.
  2019. .RE
  2020. .P
  2021. This value is not exported to the environment for child processes\.
  2022. <!\-\- automatically generated, do not edit manually \-\->
  2023. <!\-\- see lib/utils/config/definitions\.js \-\->
  2024. .SS \fByes\fP
  2025. .RS 0
  2026. .IP \(bu 2
  2027. Default: null
  2028. .IP \(bu 2
  2029. Type: null or Boolean
  2030. .RE
  2031. .P
  2032. Automatically answer "yes" to any prompts that npm might print on the
  2033. command line\.
  2034. <!\-\- automatically generated, do not edit manually \-\->
  2035. <!\-\- see lib/utils/config/definitions\.js \-\->
  2036. .SS \fBalso\fP
  2037. .RS 0
  2038. .IP \(bu 2
  2039. Default: null
  2040. .IP \(bu 2
  2041. Type: null, "dev", or "development"
  2042. .IP \(bu 2
  2043. DEPRECATED: Please use \-\-include=dev instead\.
  2044. .RE
  2045. .P
  2046. When set to \fBdev\fP or \fBdevelopment\fP, this is an alias for \fB\-\-include=dev\fP\|\.
  2047. <!\-\- automatically generated, do not edit manually \-\->
  2048. <!\-\- see lib/utils/config/definitions\.js \-\->
  2049. .SS \fBauth\-type\fP
  2050. .RS 0
  2051. .IP \(bu 2
  2052. Default: "legacy"
  2053. .IP \(bu 2
  2054. Type: "legacy", "sso", "saml", or "oauth"
  2055. .IP \(bu 2
  2056. DEPRECATED: This method of SSO/SAML/OAuth is deprecated and will be removed
  2057. in a future version of npm in favor of web\-based login\.
  2058. .RE
  2059. .P
  2060. What authentication strategy to use with \fBadduser\fP/\fBlogin\fP\|\.
  2061. <!\-\- automatically generated, do not edit manually \-\->
  2062. <!\-\- see lib/utils/config/definitions\.js \-\->
  2063. .SS \fBcache\-max\fP
  2064. .RS 0
  2065. .IP \(bu 2
  2066. Default: Infinity
  2067. .IP \(bu 2
  2068. Type: Number
  2069. .IP \(bu 2
  2070. DEPRECATED: This option has been deprecated in favor of \fB\-\-prefer\-online\fP
  2071. .RE
  2072. .P
  2073. \fB\-\-cache\-max=0\fP is an alias for \fB\-\-prefer\-online\fP
  2074. <!\-\- automatically generated, do not edit manually \-\->
  2075. <!\-\- see lib/utils/config/definitions\.js \-\->
  2076. .SS \fBcache\-min\fP
  2077. .RS 0
  2078. .IP \(bu 2
  2079. Default: 0
  2080. .IP \(bu 2
  2081. Type: Number
  2082. .IP \(bu 2
  2083. DEPRECATED: This option has been deprecated in favor of \fB\-\-prefer\-offline\fP\|\.
  2084. .RE
  2085. .P
  2086. \fB\-\-cache\-min=9999 (or bigger)\fP is an alias for \fB\-\-prefer\-offline\fP\|\.
  2087. <!\-\- automatically generated, do not edit manually \-\->
  2088. <!\-\- see lib/utils/config/definitions\.js \-\->
  2089. .SS \fBdev\fP
  2090. .RS 0
  2091. .IP \(bu 2
  2092. Default: false
  2093. .IP \(bu 2
  2094. Type: Boolean
  2095. .IP \(bu 2
  2096. DEPRECATED: Please use \-\-include=dev instead\.
  2097. .RE
  2098. .P
  2099. Alias for \fB\-\-include=dev\fP\|\.
  2100. <!\-\- automatically generated, do not edit manually \-\->
  2101. <!\-\- see lib/utils/config/definitions\.js \-\->
  2102. .SS \fBinit\.author\.email\fP
  2103. .RS 0
  2104. .IP \(bu 2
  2105. Default: ""
  2106. .IP \(bu 2
  2107. Type: String
  2108. .IP \(bu 2
  2109. DEPRECATED: Use \fB\-\-init\-author\-email\fP instead\.
  2110. .RE
  2111. .P
  2112. Alias for \fB\-\-init\-author\-email\fP
  2113. <!\-\- automatically generated, do not edit manually \-\->
  2114. <!\-\- see lib/utils/config/definitions\.js \-\->
  2115. .SS \fBinit\.author\.name\fP
  2116. .RS 0
  2117. .IP \(bu 2
  2118. Default: ""
  2119. .IP \(bu 2
  2120. Type: String
  2121. .IP \(bu 2
  2122. DEPRECATED: Use \fB\-\-init\-author\-name\fP instead\.
  2123. .RE
  2124. .P
  2125. Alias for \fB\-\-init\-author\-name\fP
  2126. <!\-\- automatically generated, do not edit manually \-\->
  2127. <!\-\- see lib/utils/config/definitions\.js \-\->
  2128. .SS \fBinit\.author\.url\fP
  2129. .RS 0
  2130. .IP \(bu 2
  2131. Default: ""
  2132. .IP \(bu 2
  2133. Type: "" or URL
  2134. .IP \(bu 2
  2135. DEPRECATED: Use \fB\-\-init\-author\-url\fP instead\.
  2136. .RE
  2137. .P
  2138. Alias for \fB\-\-init\-author\-url\fP
  2139. <!\-\- automatically generated, do not edit manually \-\->
  2140. <!\-\- see lib/utils/config/definitions\.js \-\->
  2141. .SS \fBinit\.license\fP
  2142. .RS 0
  2143. .IP \(bu 2
  2144. Default: "ISC"
  2145. .IP \(bu 2
  2146. Type: String
  2147. .IP \(bu 2
  2148. DEPRECATED: Use \fB\-\-init\-license\fP instead\.
  2149. .RE
  2150. .P
  2151. Alias for \fB\-\-init\-license\fP
  2152. <!\-\- automatically generated, do not edit manually \-\->
  2153. <!\-\- see lib/utils/config/definitions\.js \-\->
  2154. .SS \fBinit\.module\fP
  2155. .RS 0
  2156. .IP \(bu 2
  2157. Default: "~/\.npm\-init\.js"
  2158. .IP \(bu 2
  2159. Type: Path
  2160. .IP \(bu 2
  2161. DEPRECATED: Use \fB\-\-init\-module\fP instead\.
  2162. .RE
  2163. .P
  2164. Alias for \fB\-\-init\-module\fP
  2165. <!\-\- automatically generated, do not edit manually \-\->
  2166. <!\-\- see lib/utils/config/definitions\.js \-\->
  2167. .SS \fBinit\.version\fP
  2168. .RS 0
  2169. .IP \(bu 2
  2170. Default: "1\.0\.0"
  2171. .IP \(bu 2
  2172. Type: SemVer string
  2173. .IP \(bu 2
  2174. DEPRECATED: Use \fB\-\-init\-version\fP instead\.
  2175. .RE
  2176. .P
  2177. Alias for \fB\-\-init\-version\fP
  2178. <!\-\- automatically generated, do not edit manually \-\->
  2179. <!\-\- see lib/utils/config/definitions\.js \-\->
  2180. .SS \fBonly\fP
  2181. .RS 0
  2182. .IP \(bu 2
  2183. Default: null
  2184. .IP \(bu 2
  2185. Type: null, "prod", or "production"
  2186. .IP \(bu 2
  2187. DEPRECATED: Use \fB\-\-omit=dev\fP to omit dev dependencies from the install\.
  2188. .RE
  2189. .P
  2190. When set to \fBprod\fP or \fBproduction\fP, this is an alias for \fB\-\-omit=dev\fP\|\.
  2191. <!\-\- automatically generated, do not edit manually \-\->
  2192. <!\-\- see lib/utils/config/definitions\.js \-\->
  2193. .SS \fBoptional\fP
  2194. .RS 0
  2195. .IP \(bu 2
  2196. Default: null
  2197. .IP \(bu 2
  2198. Type: null or Boolean
  2199. .IP \(bu 2
  2200. DEPRECATED: Use \fB\-\-omit=optional\fP to exclude optional dependencies, or
  2201. \fB\-\-include=optional\fP to include them\.
  2202. .RE
  2203. .P
  2204. Default value does install optional deps unless otherwise omitted\.
  2205. .P
  2206. Alias for \-\-include=optional or \-\-omit=optional
  2207. <!\-\- automatically generated, do not edit manually \-\->
  2208. <!\-\- see lib/utils/config/definitions\.js \-\->
  2209. .SS \fBproduction\fP
  2210. .RS 0
  2211. .IP \(bu 2
  2212. Default: null
  2213. .IP \(bu 2
  2214. Type: null or Boolean
  2215. .IP \(bu 2
  2216. DEPRECATED: Use \fB\-\-omit=dev\fP instead\.
  2217. .RE
  2218. .P
  2219. Alias for \fB\-\-omit=dev\fP
  2220. <!\-\- automatically generated, do not edit manually \-\->
  2221. <!\-\- see lib/utils/config/definitions\.js \-\->
  2222. .SS \fBshrinkwrap\fP
  2223. .RS 0
  2224. .IP \(bu 2
  2225. Default: true
  2226. .IP \(bu 2
  2227. Type: Boolean
  2228. .IP \(bu 2
  2229. DEPRECATED: Use the \-\-package\-lock setting instead\.
  2230. .RE
  2231. .P
  2232. Alias for \-\-package\-lock
  2233. <!\-\- automatically generated, do not edit manually \-\->
  2234. <!\-\- see lib/utils/config/definitions\.js \-\->
  2235. .SS \fBsso\-poll\-frequency\fP
  2236. .RS 0
  2237. .IP \(bu 2
  2238. Default: 500
  2239. .IP \(bu 2
  2240. Type: Number
  2241. .IP \(bu 2
  2242. DEPRECATED: The \-\-auth\-type method of SSO/SAML/OAuth will be removed in a
  2243. future version of npm in favor of web\-based login\.
  2244. .RE
  2245. .P
  2246. When used with SSO\-enabled \fBauth\-type\fPs, configures how regularly the
  2247. registry should be polled while the user is completing authentication\.
  2248. <!\-\- automatically generated, do not edit manually \-\->
  2249. <!\-\- see lib/utils/config/definitions\.js \-\->
  2250. .SS \fBsso\-type\fP
  2251. .RS 0
  2252. .IP \(bu 2
  2253. Default: "oauth"
  2254. .IP \(bu 2
  2255. Type: null, "oauth", or "saml"
  2256. .IP \(bu 2
  2257. DEPRECATED: The \-\-auth\-type method of SSO/SAML/OAuth will be removed in a
  2258. future version of npm in favor of web\-based login\.
  2259. .RE
  2260. .P
  2261. If \fB\-\-auth\-type=sso\fP, the type of SSO type to use\.
  2262. <!\-\- automatically generated, do not edit manually \-\->
  2263. <!\-\- see lib/utils/config/definitions\.js \-\->
  2264. .SS \fBtmp\fP
  2265. .RS 0
  2266. .IP \(bu 2
  2267. Default: The value returned by the Node\.js \fBos\.tmpdir()\fP method
  2268. https://nodejs\.org/api/os\.html#os_os_tmpdir
  2269. .IP \(bu 2
  2270. Type: Path
  2271. .IP \(bu 2
  2272. DEPRECATED: This setting is no longer used\. npm stores temporary files in a
  2273. special location in the cache, and they are managed by
  2274. \fBcacache\fP \fIhttp://npm\.im/cacache\fR\|\.
  2275. .RE
  2276. .P
  2277. Historically, the location where temporary files were stored\. No longer
  2278. relevant\.
  2279. <!\-\- automatically generated, do not edit manually \-\->
  2280. <!\-\- see lib/utils/config/definitions\.js \-\->
  2281. <!\-\- AUTOGENERATED CONFIG DESCRIPTIONS END \-\->
  2282. .SS See also
  2283. .RS 0
  2284. .IP \(bu 2
  2285. npm help config
  2286. .IP \(bu 2
  2287. npm help npmrc
  2288. .IP \(bu 2
  2289. npm help scripts
  2290. .IP \(bu 2
  2291. npm help folders
  2292. .IP \(bu 2
  2293. npm help npm
  2294. .RE