123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595 |
- .TH "CONFIG" "7" "October 2021" "" ""
- .SH "NAME"
- \fBconfig\fR \- More than you probably want to know about npm configuration
- .SS Description
- .P
- npm gets its configuration values from the following sources, sorted by priority:
- .SS Command Line Flags
- .P
- Putting \fB\-\-foo bar\fP on the command line sets the \fBfoo\fP configuration
- parameter to \fB"bar"\fP\|\. A \fB\-\-\fP argument tells the cli parser to stop
- reading flags\. Using \fB\-\-flag\fP without specifying any value will set
- the value to \fBtrue\fP\|\.
- .P
- Example: \fB\-\-flag1 \-\-flag2\fP will set both configuration parameters
- to \fBtrue\fP, while \fB\-\-flag1 \-\-flag2 bar\fP will set \fBflag1\fP to \fBtrue\fP,
- and \fBflag2\fP to \fBbar\fP\|\. Finally, \fB\-\-flag1 \-\-flag2 \-\- bar\fP will set
- both configuration parameters to \fBtrue\fP, and the \fBbar\fP is taken
- as a command argument\.
- .SS Environment Variables
- .P
- Any environment variables that start with \fBnpm_config_\fP will be
- interpreted as a configuration parameter\. For example, putting
- \fBnpm_config_foo=bar\fP in your environment will set the \fBfoo\fP
- configuration parameter to \fBbar\fP\|\. Any environment configurations that
- are not given a value will be given the value of \fBtrue\fP\|\. Config
- values are case\-insensitive, so \fBNPM_CONFIG_FOO=bar\fP will work the
- same\. However, please note that inside npm help \fBscripts\fP
- npm will set its own environment variables and Node will prefer
- those lowercase versions over any uppercase ones that you might set\.
- For details see this issue \fIhttps://github\.com/npm/npm/issues/14528\fR\|\.
- .P
- Notice that you need to use underscores instead of dashes, so \fB\-\-allow\-same\-version\fP
- would become \fBnpm_config_allow_same_version=true\fP\|\.
- .SS npmrc Files
- .P
- The four relevant files are:
- .RS 0
- .IP \(bu 2
- per\-project configuration file (\fB/path/to/my/project/\.npmrc\fP)
- .IP \(bu 2
- per\-user configuration file (defaults to \fB$HOME/\.npmrc\fP; configurable via CLI
- option \fB\-\-userconfig\fP or environment variable \fB$NPM_CONFIG_USERCONFIG\fP)
- .IP \(bu 2
- global configuration file (defaults to \fB$PREFIX/etc/npmrc\fP; configurable via
- CLI option \fB\-\-globalconfig\fP or environment variable \fB$NPM_CONFIG_GLOBALCONFIG\fP)
- .IP \(bu 2
- npm's built\-in configuration file (\fB/path/to/npm/npmrc\fP)
- .RE
- .P
- See npm help npmrc for more details\.
- .SS Default Configs
- .P
- Run \fBnpm config ls \-l\fP to see a set of configuration parameters that are
- internal to npm, and are defaults if nothing else is specified\.
- .SS Shorthands and Other CLI Niceties
- .P
- The following shorthands are parsed on the command\-line:
- <!\-\- AUTOGENERATED CONFIG SHORTHANDS START \-\->
- <!\-\- automatically generated, do not edit manually \-\->
- <!\-\- see lib/utils/config/definitions\.js \-\->
- .RS 0
- .IP \(bu 2
- \fB\-a\fP: \fB\-\-all\fP
- .IP \(bu 2
- \fB\-\-enjoy\-by\fP: \fB\-\-before\fP
- .IP \(bu 2
- \fB\-c\fP: \fB\-\-call\fP
- .IP \(bu 2
- \fB\-\-desc\fP: \fB\-\-description\fP
- .IP \(bu 2
- \fB\-f\fP: \fB\-\-force\fP
- .IP \(bu 2
- \fB\-g\fP: \fB\-\-global\fP
- .IP \(bu 2
- \fB\-L\fP: \fB\-\-location\fP
- .IP \(bu 2
- \fB\-d\fP: \fB\-\-loglevel info\fP
- .IP \(bu 2
- \fB\-s\fP: \fB\-\-loglevel silent\fP
- .IP \(bu 2
- \fB\-\-silent\fP: \fB\-\-loglevel silent\fP
- .IP \(bu 2
- \fB\-\-ddd\fP: \fB\-\-loglevel silly\fP
- .IP \(bu 2
- \fB\-\-dd\fP: \fB\-\-loglevel verbose\fP
- .IP \(bu 2
- \fB\-\-verbose\fP: \fB\-\-loglevel verbose\fP
- .IP \(bu 2
- \fB\-q\fP: \fB\-\-loglevel warn\fP
- .IP \(bu 2
- \fB\-\-quiet\fP: \fB\-\-loglevel warn\fP
- .IP \(bu 2
- \fB\-l\fP: \fB\-\-long\fP
- .IP \(bu 2
- \fB\-m\fP: \fB\-\-message\fP
- .IP \(bu 2
- \fB\-\-local\fP: \fB\-\-no\-global\fP
- .IP \(bu 2
- \fB\-n\fP: \fB\-\-no\-yes\fP
- .IP \(bu 2
- \fB\-\-no\fP: \fB\-\-no\-yes\fP
- .IP \(bu 2
- \fB\-p\fP: \fB\-\-parseable\fP
- .IP \(bu 2
- \fB\-\-porcelain\fP: \fB\-\-parseable\fP
- .IP \(bu 2
- \fB\-C\fP: \fB\-\-prefix\fP
- .IP \(bu 2
- \fB\-\-readonly\fP: \fB\-\-read\-only\fP
- .IP \(bu 2
- \fB\-\-reg\fP: \fB\-\-registry\fP
- .IP \(bu 2
- \fB\-S\fP: \fB\-\-save\fP
- .IP \(bu 2
- \fB\-B\fP: \fB\-\-save\-bundle\fP
- .IP \(bu 2
- \fB\-D\fP: \fB\-\-save\-dev\fP
- .IP \(bu 2
- \fB\-E\fP: \fB\-\-save\-exact\fP
- .IP \(bu 2
- \fB\-O\fP: \fB\-\-save\-optional\fP
- .IP \(bu 2
- \fB\-P\fP: \fB\-\-save\-prod\fP
- .IP \(bu 2
- \fB\-?\fP: \fB\-\-usage\fP
- .IP \(bu 2
- \fB\-h\fP: \fB\-\-usage\fP
- .IP \(bu 2
- \fB\-H\fP: \fB\-\-usage\fP
- .IP \(bu 2
- \fB\-\-help\fP: \fB\-\-usage\fP
- .IP \(bu 2
- \fB\-v\fP: \fB\-\-version\fP
- .IP \(bu 2
- \fB\-w\fP: \fB\-\-workspace\fP
- .IP \(bu 2
- \fB\-\-ws\fP: \fB\-\-workspaces\fP
- .IP \(bu 2
- \fB\-y\fP: \fB\-\-yes\fP
- .RE
- <!\-\- automatically generated, do not edit manually \-\->
- <!\-\- see lib/utils/config/definitions\.js \-\->
- <!\-\- AUTOGENERATED CONFIG SHORTHANDS END \-\->
- .P
- If the specified configuration param resolves unambiguously to a known
- configuration parameter, then it is expanded to that configuration
- parameter\. For example:
- .P
- .RS 2
- .nf
- npm ls \-\-par
- # same as:
- npm ls \-\-parseable
- .fi
- .RE
- .P
- If multiple single\-character shorthands are strung together, and the
- resulting combination is unambiguously not some other configuration
- param, then it is expanded to its various component pieces\. For
- example:
- .P
- .RS 2
- .nf
- npm ls \-gpld
- # same as:
- npm ls \-\-global \-\-parseable \-\-long \-\-loglevel info
- .fi
- .RE
- .SS Config Settings
- <!\-\- AUTOGENERATED CONFIG DESCRIPTIONS START \-\->
- <!\-\- automatically generated, do not edit manually \-\->
- <!\-\- see lib/utils/config/definitions\.js \-\->
- .SS \fB_auth\fP
- .RS 0
- .IP \(bu 2
- Default: null
- .IP \(bu 2
- Type: null or String
- .RE
- .P
- A basic\-auth string to use when authenticating against the npm registry\.
- .P
- Warning: This should generally not be set via a command\-line option\. It is
- safer to use a registry\-provided authentication bearer token stored in the
- ~/\.npmrc file by running \fBnpm login\fP\|\.
- <!\-\- automatically generated, do not edit manually \-\->
- <!\-\- see lib/utils/config/definitions\.js \-\->
- .SS \fBaccess\fP
- .RS 0
- .IP \(bu 2
- Default: 'restricted' for scoped packages, 'public' for unscoped packages
- .IP \(bu 2
- Type: null, "restricted", or "public"
- .RE
- .P
- When publishing scoped packages, the access level defaults to \fBrestricted\fP\|\.
- If you want your scoped package to be publicly viewable (and installable)
- set \fB\-\-access=public\fP\|\. The only valid values for \fBaccess\fP are \fBpublic\fP and
- \fBrestricted\fP\|\. Unscoped packages \fIalways\fR have an access level of \fBpublic\fP\|\.
- .P
- Note: Using the \fB\-\-access\fP flag on the \fBnpm publish\fP command will only set
- the package access level on the initial publish of the package\. Any
- subsequent \fBnpm publish\fP commands using the \fB\-\-access\fP flag will not have an
- effect to the access level\. To make changes to the access level after the
- initial publish use \fBnpm access\fP\|\.
- <!\-\- automatically generated, do not edit manually \-\->
- <!\-\- see lib/utils/config/definitions\.js \-\->
- .SS \fBall\fP
- .RS 0
- .IP \(bu 2
- Default: false
- .IP \(bu 2
- Type: Boolean
- .RE
- .P
- When running \fBnpm outdated\fP and \fBnpm ls\fP, setting \fB\-\-all\fP will show all
- outdated or installed packages, rather than only those directly depended
- upon by the current project\.
- <!\-\- automatically generated, do not edit manually \-\->
- <!\-\- see lib/utils/config/definitions\.js \-\->
- .SS \fBallow\-same\-version\fP
- .RS 0
- .IP \(bu 2
- Default: false
- .IP \(bu 2
- Type: Boolean
- .RE
- .P
- Prevents throwing an error when \fBnpm version\fP is used to set the new version
- to the same value as the current version\.
- <!\-\- automatically generated, do not edit manually \-\->
- <!\-\- see lib/utils/config/definitions\.js \-\->
- .SS \fBaudit\fP
- .RS 0
- .IP \(bu 2
- Default: true
- .IP \(bu 2
- Type: Boolean
- .RE
- .P
- When "true" submit audit reports alongside the current npm command to the
- default registry and all registries configured for scopes\. See the
- documentation for npm help \fBaudit\fP for details on what is
- submitted\.
- <!\-\- automatically generated, do not edit manually \-\->
- <!\-\- see lib/utils/config/definitions\.js \-\->
- .SS \fBaudit\-level\fP
- .RS 0
- .IP \(bu 2
- Default: null
- .IP \(bu 2
- Type: null, "info", "low", "moderate", "high", "critical", or "none"
- .RE
- .P
- The minimum level of vulnerability for \fBnpm audit\fP to exit with a non\-zero
- exit code\.
- <!\-\- automatically generated, do not edit manually \-\->
- <!\-\- see lib/utils/config/definitions\.js \-\->
- .SS \fBbefore\fP
- .RS 0
- .IP \(bu 2
- Default: null
- .IP \(bu 2
- Type: null or Date
- .RE
- .P
- If passed to \fBnpm install\fP, will rebuild the npm tree such that only
- versions that were available \fBon or before\fR the \fB\-\-before\fP time get
- installed\. If there's no versions available for the current set of direct
- dependencies, the command will error\.
- .P
- If the requested version is a \fBdist\-tag\fP and the given tag does not pass the
- \fB\-\-before\fP filter, the most recent version less than or equal to that tag
- will be used\. For example, \fBfoo@latest\fP might install \fBfoo@1\.2\fP even though
- \fBlatest\fP is \fB2\.0\fP\|\.
- <!\-\- automatically generated, do not edit manually \-\->
- <!\-\- see lib/utils/config/definitions\.js \-\->
- .SS \fBbin\-links\fP
- .RS 0
- .IP \(bu 2
- Default: true
- .IP \(bu 2
- Type: Boolean
- .RE
- .P
- Tells npm to create symlinks (or \fB\|\.cmd\fP shims on Windows) for package
- executables\.
- .P
- Set to false to have it not do this\. This can be used to work around the
- fact that some file systems don't support symlinks, even on ostensibly Unix
- systems\.
- <!\-\- automatically generated, do not edit manually \-\->
- <!\-\- see lib/utils/config/definitions\.js \-\->
- .SS \fBbrowser\fP
- .RS 0
- .IP \(bu 2
- Default: OS X: \fB"open"\fP, Windows: \fB"start"\fP, Others: \fB"xdg\-open"\fP
- .IP \(bu 2
- Type: null, Boolean, or String
- .RE
- .P
- The browser that is called by npm commands to open websites\.
- .P
- Set to \fBfalse\fP to suppress browser behavior and instead print urls to
- terminal\.
- .P
- Set to \fBtrue\fP to use default system URL opener\.
- <!\-\- automatically generated, do not edit manually \-\->
- <!\-\- see lib/utils/config/definitions\.js \-\->
- .SS \fBca\fP
- .RS 0
- .IP \(bu 2
- Default: null
- .IP \(bu 2
- Type: null or String (can be set multiple times)
- .RE
- .P
- The Certificate Authority signing certificate that is trusted for SSL
- connections to the registry\. Values should be in PEM format (Windows calls
- it "Base\-64 encoded X\.509 (\.CER)") with newlines replaced by the string
- "\\n"\. For example:
- .P
- .RS 2
- .nf
- ca="\-\-\-\-\-BEGIN CERTIFICATE\-\-\-\-\-\\nXXXX\\nXXXX\\n\-\-\-\-\-END CERTIFICATE\-\-\-\-\-"
- .fi
- .RE
- .P
- Set to \fBnull\fP to only allow "known" registrars, or to a specific CA cert to
- trust only that specific signing authority\.
- .P
- Multiple CAs can be trusted by specifying an array of certificates:
- .P
- .RS 2
- .nf
- ca[]="\.\.\."
- ca[]="\.\.\."
- .fi
- .RE
- .P
- See also the \fBstrict\-ssl\fP config\.
- <!\-\- automatically generated, do not edit manually \-\->
- <!\-\- see lib/utils/config/definitions\.js \-\->
- .SS \fBcache\fP
- .RS 0
- .IP \(bu 2
- Default: Windows: \fB%LocalAppData%\\npm\-cache\fP, Posix: \fB~/\.npm\fP
- .IP \(bu 2
- Type: Path
- .RE
- .P
- The location of npm's cache directory\. See npm help \fBnpm
- cache\fP
- <!\-\- automatically generated, do not edit manually \-\->
- <!\-\- see lib/utils/config/definitions\.js \-\->
- .SS \fBcafile\fP
- .RS 0
- .IP \(bu 2
- Default: null
- .IP \(bu 2
- Type: Path
- .RE
- .P
- A path to a file containing one or multiple Certificate Authority signing
- certificates\. Similar to the \fBca\fP setting, but allows for multiple CA's, as
- well as for the CA information to be stored in a file on disk\.
- <!\-\- automatically generated, do not edit manually \-\->
- <!\-\- see lib/utils/config/definitions\.js \-\->
- .SS \fBcall\fP
- .RS 0
- .IP \(bu 2
- Default: ""
- .IP \(bu 2
- Type: String
- .RE
- .P
- Optional companion option for \fBnpm exec\fP, \fBnpx\fP that allows for specifying a
- custom command to be run along with the installed packages\.
- .P
- .RS 2
- .nf
- npm exec \-\-package yo \-\-package generator\-node \-\-call "yo node"
- .fi
- .RE
- <!\-\- automatically generated, do not edit manually \-\->
- <!\-\- see lib/utils/config/definitions\.js \-\->
- .SS \fBcert\fP
- .RS 0
- .IP \(bu 2
- Default: null
- .IP \(bu 2
- Type: null or String
- .RE
- .P
- A client certificate to pass when accessing the registry\. Values should be
- in PEM format (Windows calls it "Base\-64 encoded X\.509 (\.CER)") with
- newlines replaced by the string "\\n"\. For example:
- .P
- .RS 2
- .nf
- cert="\-\-\-\-\-BEGIN CERTIFICATE\-\-\-\-\-\\nXXXX\\nXXXX\\n\-\-\-\-\-END CERTIFICATE\-\-\-\-\-"
- .fi
- .RE
- .P
- It is \fInot\fR the path to a certificate file (and there is no "certfile"
- option)\.
- <!\-\- automatically generated, do not edit manually \-\->
- <!\-\- see lib/utils/config/definitions\.js \-\->
- .SS \fBci\-name\fP
- .RS 0
- .IP \(bu 2
- Default: The name of the current CI system, or \fBnull\fP when not on a known CI
- platform\.
- .IP \(bu 2
- Type: null or String
- .RE
- .P
- The name of a continuous integration system\. If not set explicitly, npm will
- detect the current CI environment using the
- \fB@npmcli/ci\-detect\fP \fIhttp://npm\.im/@npmcli/ci\-detect\fR module\.
- <!\-\- automatically generated, do not edit manually \-\->
- <!\-\- see lib/utils/config/definitions\.js \-\->
- .SS \fBcidr\fP
- .RS 0
- .IP \(bu 2
- Default: null
- .IP \(bu 2
- Type: null or String (can be set multiple times)
- .RE
- .P
- This is a list of CIDR address to be used when configuring limited access
- tokens with the \fBnpm token create\fP command\.
- <!\-\- automatically generated, do not edit manually \-\->
- <!\-\- see lib/utils/config/definitions\.js \-\->
- .SS \fBcolor\fP
- .RS 0
- .IP \(bu 2
- Default: true unless the NO_COLOR environ is set to something other than '0'
- .IP \(bu 2
- Type: "always" or Boolean
- .RE
- .P
- If false, never shows colors\. If \fB"always"\fP then always shows colors\. If
- true, then only prints color codes for tty file descriptors\.
- <!\-\- automatically generated, do not edit manually \-\->
- <!\-\- see lib/utils/config/definitions\.js \-\->
- .SS \fBcommit\-hooks\fP
- .RS 0
- .IP \(bu 2
- Default: true
- .IP \(bu 2
- Type: Boolean
- .RE
- .P
- Run git commit hooks when using the \fBnpm version\fP command\.
- <!\-\- automatically generated, do not edit manually \-\->
- <!\-\- see lib/utils/config/definitions\.js \-\->
- .SS \fBdepth\fP
- .RS 0
- .IP \(bu 2
- Default: \fBInfinity\fP if \fB\-\-all\fP is set, otherwise \fB1\fP
- .IP \(bu 2
- Type: null or Number
- .RE
- .P
- The depth to go when recursing packages for \fBnpm ls\fP\|\.
- .P
- If not set, \fBnpm ls\fP will show only the immediate dependencies of the root
- project\. If \fB\-\-all\fP is set, then npm will show all dependencies by default\.
- <!\-\- automatically generated, do not edit manually \-\->
- <!\-\- see lib/utils/config/definitions\.js \-\->
- .SS \fBdescription\fP
- .RS 0
- .IP \(bu 2
- Default: true
- .IP \(bu 2
- Type: Boolean
- .RE
- .P
- Show the description in \fBnpm search\fP
- <!\-\- automatically generated, do not edit manually \-\->
- <!\-\- see lib/utils/config/definitions\.js \-\->
- .SS \fBdiff\fP
- .RS 0
- .IP \(bu 2
- Default:
- .IP \(bu 2
- Type: String (can be set multiple times)
- .RE
- .P
- Define arguments to compare in \fBnpm diff\fP\|\.
- <!\-\- automatically generated, do not edit manually \-\->
- <!\-\- see lib/utils/config/definitions\.js \-\->
- .SS \fBdiff\-dst\-prefix\fP
- .RS 0
- .IP \(bu 2
- Default: "b/"
- .IP \(bu 2
- Type: String
- .RE
- .P
- Destination prefix to be used in \fBnpm diff\fP output\.
- <!\-\- automatically generated, do not edit manually \-\->
- <!\-\- see lib/utils/config/definitions\.js \-\->
- .SS \fBdiff\-ignore\-all\-space\fP
- .RS 0
- .IP \(bu 2
- Default: false
- .IP \(bu 2
- Type: Boolean
- .RE
- .P
- Ignore whitespace when comparing lines in \fBnpm diff\fP\|\.
- <!\-\- automatically generated, do not edit manually \-\->
- <!\-\- see lib/utils/config/definitions\.js \-\->
- .SS \fBdiff\-name\-only\fP
- .RS 0
- .IP \(bu 2
- Default: false
- .IP \(bu 2
- Type: Boolean
- .RE
- .P
- Prints only filenames when using \fBnpm diff\fP\|\.
- <!\-\- automatically generated, do not edit manually \-\->
- <!\-\- see lib/utils/config/definitions\.js \-\->
- .SS \fBdiff\-no\-prefix\fP
- .RS 0
- .IP \(bu 2
- Default: false
- .IP \(bu 2
- Type: Boolean
- .RE
- .P
- Do not show any source or destination prefix in \fBnpm diff\fP output\.
- .P
- Note: this causes \fBnpm diff\fP to ignore the \fB\-\-diff\-src\-prefix\fP and
- \fB\-\-diff\-dst\-prefix\fP configs\.
- <!\-\- automatically generated, do not edit manually \-\->
- <!\-\- see lib/utils/config/definitions\.js \-\->
- .SS \fBdiff\-src\-prefix\fP
- .RS 0
- .IP \(bu 2
- Default: "a/"
- .IP \(bu 2
- Type: String
- .RE
- .P
- Source prefix to be used in \fBnpm diff\fP output\.
- <!\-\- automatically generated, do not edit manually \-\->
- <!\-\- see lib/utils/config/definitions\.js \-\->
- .SS \fBdiff\-text\fP
- .RS 0
- .IP \(bu 2
- Default: false
- .IP \(bu 2
- Type: Boolean
- .RE
- .P
- Treat all files as text in \fBnpm diff\fP\|\.
- <!\-\- automatically generated, do not edit manually \-\->
- <!\-\- see lib/utils/config/definitions\.js \-\->
- .SS \fBdiff\-unified\fP
- .RS 0
- .IP \(bu 2
- Default: 3
- .IP \(bu 2
- Type: Number
- .RE
- .P
- The number of lines of context to print in \fBnpm diff\fP\|\.
- <!\-\- automatically generated, do not edit manually \-\->
- <!\-\- see lib/utils/config/definitions\.js \-\->
- .SS \fBdry\-run\fP
- .RS 0
- .IP \(bu 2
- Default: false
- .IP \(bu 2
- Type: Boolean
- .RE
- .P
- Indicates that you don't want npm to make any changes and that it should
- only report what it would have done\. This can be passed into any of the
- commands that modify your local installation, eg, \fBinstall\fP, \fBupdate\fP,
- \fBdedupe\fP, \fBuninstall\fP, as well as \fBpack\fP and \fBpublish\fP\|\.
- .P
- Note: This is NOT honored by other network related commands, eg \fBdist\-tags\fP,
- \fBowner\fP, etc\.
- <!\-\- automatically generated, do not edit manually \-\->
- <!\-\- see lib/utils/config/definitions\.js \-\->
- .SS \fBeditor\fP
- .RS 0
- .IP \(bu 2
- Default: The EDITOR or VISUAL environment variables, or 'notepad\.exe' on
- Windows, or 'vim' on Unix systems
- .IP \(bu 2
- Type: String
- .RE
- .P
- The command to run for \fBnpm edit\fP and \fBnpm config edit\fP\|\.
- <!\-\- automatically generated, do not edit manually \-\->
- <!\-\- see lib/utils/config/definitions\.js \-\->
- .SS \fBengine\-strict\fP
- .RS 0
- .IP \(bu 2
- Default: false
- .IP \(bu 2
- Type: Boolean
- .RE
- .P
- If set to true, then npm will stubbornly refuse to install (or even consider
- installing) any package that claims to not be compatible with the current
- Node\.js version\.
- .P
- This can be overridden by setting the \fB\-\-force\fP flag\.
- <!\-\- automatically generated, do not edit manually \-\->
- <!\-\- see lib/utils/config/definitions\.js \-\->
- .SS \fBfetch\-retries\fP
- .RS 0
- .IP \(bu 2
- Default: 2
- .IP \(bu 2
- Type: Number
- .RE
- .P
- The "retries" config for the \fBretry\fP module to use when fetching packages
- from the registry\.
- .P
- npm will retry idempotent read requests to the registry in the case of
- network failures or 5xx HTTP errors\.
- <!\-\- automatically generated, do not edit manually \-\->
- <!\-\- see lib/utils/config/definitions\.js \-\->
- .SS \fBfetch\-retry\-factor\fP
- .RS 0
- .IP \(bu 2
- Default: 10
- .IP \(bu 2
- Type: Number
- .RE
- .P
- The "factor" config for the \fBretry\fP module to use when fetching packages\.
- <!\-\- automatically generated, do not edit manually \-\->
- <!\-\- see lib/utils/config/definitions\.js \-\->
- .SS \fBfetch\-retry\-maxtimeout\fP
- .RS 0
- .IP \(bu 2
- Default: 60000 (1 minute)
- .IP \(bu 2
- Type: Number
- .RE
- .P
- The "maxTimeout" config for the \fBretry\fP module to use when fetching
- packages\.
- <!\-\- automatically generated, do not edit manually \-\->
- <!\-\- see lib/utils/config/definitions\.js \-\->
- .SS \fBfetch\-retry\-mintimeout\fP
- .RS 0
- .IP \(bu 2
- Default: 10000 (10 seconds)
- .IP \(bu 2
- Type: Number
- .RE
- .P
- The "minTimeout" config for the \fBretry\fP module to use when fetching
- packages\.
- <!\-\- automatically generated, do not edit manually \-\->
- <!\-\- see lib/utils/config/definitions\.js \-\->
- .SS \fBfetch\-timeout\fP
- .RS 0
- .IP \(bu 2
- Default: 300000 (5 minutes)
- .IP \(bu 2
- Type: Number
- .RE
- .P
- The maximum amount of time to wait for HTTP requests to complete\.
- <!\-\- automatically generated, do not edit manually \-\->
- <!\-\- see lib/utils/config/definitions\.js \-\->
- .SS \fBforce\fP
- .RS 0
- .IP \(bu 2
- Default: false
- .IP \(bu 2
- Type: Boolean
- .RE
- .P
- Removes various protections against unfortunate side effects, common
- mistakes, unnecessary performance degradation, and malicious input\.
- .RS 0
- .IP \(bu 2
- Allow clobbering non\-npm files in global installs\.
- .IP \(bu 2
- Allow the \fBnpm version\fP command to work on an unclean git repository\.
- .IP \(bu 2
- Allow deleting the cache folder with \fBnpm cache clean\fP\|\.
- .IP \(bu 2
- Allow installing packages that have an \fBengines\fP declaration requiring a
- different version of npm\.
- .IP \(bu 2
- Allow installing packages that have an \fBengines\fP declaration requiring a
- different version of \fBnode\fP, even if \fB\-\-engine\-strict\fP is enabled\.
- .IP \(bu 2
- Allow \fBnpm audit fix\fP to install modules outside your stated dependency
- range (including SemVer\-major changes)\.
- .IP \(bu 2
- Allow unpublishing all versions of a published package\.
- .IP \(bu 2
- Allow conflicting peerDependencies to be installed in the root project\.
- .IP \(bu 2
- Implicitly set \fB\-\-yes\fP during \fBnpm init\fP\|\.
- .IP \(bu 2
- Allow clobbering existing values in \fBnpm pkg\fP
- .RE
- .P
- If you don't have a clear idea of what you want to do, it is strongly
- recommended that you do not use this option!
- <!\-\- automatically generated, do not edit manually \-\->
- <!\-\- see lib/utils/config/definitions\.js \-\->
- .SS \fBforeground\-scripts\fP
- .RS 0
- .IP \(bu 2
- Default: false
- .IP \(bu 2
- Type: Boolean
- .RE
- .P
- Run all build scripts (ie, \fBpreinstall\fP, \fBinstall\fP, and \fBpostinstall\fP)
- scripts for installed packages in the foreground process, sharing standard
- input, output, and error with the main npm process\.
- .P
- Note that this will generally make installs run slower, and be much noisier,
- but can be useful for debugging\.
- <!\-\- automatically generated, do not edit manually \-\->
- <!\-\- see lib/utils/config/definitions\.js \-\->
- .SS \fBformat\-package\-lock\fP
- .RS 0
- .IP \(bu 2
- Default: true
- .IP \(bu 2
- Type: Boolean
- .RE
- .P
- Format \fBpackage\-lock\.json\fP or \fBnpm\-shrinkwrap\.json\fP as a human readable
- file\.
- <!\-\- automatically generated, do not edit manually \-\->
- <!\-\- see lib/utils/config/definitions\.js \-\->
- .SS \fBfund\fP
- .RS 0
- .IP \(bu 2
- Default: true
- .IP \(bu 2
- Type: Boolean
- .RE
- .P
- When "true" displays the message at the end of each \fBnpm install\fP
- acknowledging the number of dependencies looking for funding\. See npm help \fBnpm
- fund\fP for details\.
- <!\-\- automatically generated, do not edit manually \-\->
- <!\-\- see lib/utils/config/definitions\.js \-\->
- .SS \fBgit\fP
- .RS 0
- .IP \(bu 2
- Default: "git"
- .IP \(bu 2
- Type: String
- .RE
- .P
- The command to use for git commands\. If git is installed on the computer,
- but is not in the \fBPATH\fP, then set this to the full path to the git binary\.
- <!\-\- automatically generated, do not edit manually \-\->
- <!\-\- see lib/utils/config/definitions\.js \-\->
- .SS \fBgit\-tag\-version\fP
- .RS 0
- .IP \(bu 2
- Default: true
- .IP \(bu 2
- Type: Boolean
- .RE
- .P
- Tag the commit when using the \fBnpm version\fP command\.
- <!\-\- automatically generated, do not edit manually \-\->
- <!\-\- see lib/utils/config/definitions\.js \-\->
- .SS \fBglobal\fP
- .RS 0
- .IP \(bu 2
- Default: false
- .IP \(bu 2
- Type: Boolean
- .RE
- .P
- Operates in "global" mode, so that packages are installed into the \fBprefix\fP
- folder instead of the current working directory\. See
- npm help folders for more on the differences in behavior\.
- .RS 0
- .IP \(bu 2
- packages are installed into the \fB{prefix}/lib/node_modules\fP folder, instead
- of the current working directory\.
- .IP \(bu 2
- bin files are linked to \fB{prefix}/bin\fP
- .IP \(bu 2
- man pages are linked to \fB{prefix}/share/man\fP
- .RE
- <!\-\- automatically generated, do not edit manually \-\->
- <!\-\- see lib/utils/config/definitions\.js \-\->
- .SS \fBglobal\-style\fP
- .RS 0
- .IP \(bu 2
- Default: false
- .IP \(bu 2
- Type: Boolean
- .RE
- .P
- Causes npm to install the package into your local \fBnode_modules\fP folder with
- the same layout it uses with the global \fBnode_modules\fP folder\. Only your
- direct dependencies will show in \fBnode_modules\fP and everything they depend
- on will be flattened in their \fBnode_modules\fP folders\. This obviously will
- eliminate some deduping\. If used with \fBlegacy\-bundling\fP, \fBlegacy\-bundling\fP
- will be preferred\.
- <!\-\- automatically generated, do not edit manually \-\->
- <!\-\- see lib/utils/config/definitions\.js \-\->
- .SS \fBglobalconfig\fP
- .RS 0
- .IP \(bu 2
- Default: The global \-\-prefix setting plus 'etc/npmrc'\. For example,
- \|'/usr/local/etc/npmrc'
- .IP \(bu 2
- Type: Path
- .RE
- .P
- The config file to read for global config options\.
- <!\-\- automatically generated, do not edit manually \-\->
- <!\-\- see lib/utils/config/definitions\.js \-\->
- .SS \fBheading\fP
- .RS 0
- .IP \(bu 2
- Default: "npm"
- .IP \(bu 2
- Type: String
- .RE
- .P
- The string that starts all the debugging log output\.
- <!\-\- automatically generated, do not edit manually \-\->
- <!\-\- see lib/utils/config/definitions\.js \-\->
- .SS \fBhttps\-proxy\fP
- .RS 0
- .IP \(bu 2
- Default: null
- .IP \(bu 2
- Type: null or URL
- .RE
- .P
- A proxy to use for outgoing https requests\. If the \fBHTTPS_PROXY\fP or
- \fBhttps_proxy\fP or \fBHTTP_PROXY\fP or \fBhttp_proxy\fP environment variables are set,
- proxy settings will be honored by the underlying \fBmake\-fetch\-happen\fP
- library\.
- <!\-\- automatically generated, do not edit manually \-\->
- <!\-\- see lib/utils/config/definitions\.js \-\->
- .SS \fBif\-present\fP
- .RS 0
- .IP \(bu 2
- Default: false
- .IP \(bu 2
- Type: Boolean
- .RE
- .P
- If true, npm will not exit with an error code when \fBrun\-script\fP is invoked
- for a script that isn't defined in the \fBscripts\fP section of \fBpackage\.json\fP\|\.
- This option can be used when it's desirable to optionally run a script when
- it's present and fail if the script fails\. This is useful, for example, when
- running scripts that may only apply for some builds in an otherwise generic
- CI setup\.
- <!\-\- automatically generated, do not edit manually \-\->
- <!\-\- see lib/utils/config/definitions\.js \-\->
- .SS \fBignore\-scripts\fP
- .RS 0
- .IP \(bu 2
- Default: false
- .IP \(bu 2
- Type: Boolean
- .RE
- .P
- If true, npm does not run scripts specified in package\.json files\.
- .P
- Note that commands explicitly intended to run a particular script, such as
- \fBnpm start\fP, \fBnpm stop\fP, \fBnpm restart\fP, \fBnpm test\fP, and \fBnpm run\-script\fP
- will still run their intended script if \fBignore\-scripts\fP is set, but they
- will \fInot\fR run any pre\- or post\-scripts\.
- <!\-\- automatically generated, do not edit manually \-\->
- <!\-\- see lib/utils/config/definitions\.js \-\->
- .SS \fBinclude\fP
- .RS 0
- .IP \(bu 2
- Default:
- .IP \(bu 2
- Type: "prod", "dev", "optional", or "peer" (can be set multiple times)
- .RE
- .P
- Option that allows for defining which types of dependencies to install\.
- .P
- This is the inverse of \fB\-\-omit=<type>\fP\|\.
- .P
- Dependency types specified in \fB\-\-include\fP will not be omitted, regardless of
- the order in which omit/include are specified on the command\-line\.
- <!\-\- automatically generated, do not edit manually \-\->
- <!\-\- see lib/utils/config/definitions\.js \-\->
- .SS \fBinclude\-staged\fP
- .RS 0
- .IP \(bu 2
- Default: false
- .IP \(bu 2
- Type: Boolean
- .RE
- .P
- Allow installing "staged" published packages, as defined by npm RFC PR
- #92 \fIhttps://github\.com/npm/rfcs/pull/92\fR\|\.
- .P
- This is experimental, and not implemented by the npm public registry\.
- <!\-\- automatically generated, do not edit manually \-\->
- <!\-\- see lib/utils/config/definitions\.js \-\->
- .SS \fBinclude\-workspace\-root\fP
- .RS 0
- .IP \(bu 2
- Default: false
- .IP \(bu 2
- Type: Boolean
- .RE
- .P
- Include the workspace root when workspaces are enabled for a command\.
- .P
- When false, specifying individual workspaces via the \fBworkspace\fP config, or
- all workspaces via the \fBworkspaces\fP flag, will cause npm to operate only on
- the specified workspaces, and not on the root project\.
- <!\-\- automatically generated, do not edit manually \-\->
- <!\-\- see lib/utils/config/definitions\.js \-\->
- .SS \fBinit\-author\-email\fP
- .RS 0
- .IP \(bu 2
- Default: ""
- .IP \(bu 2
- Type: String
- .RE
- .P
- The value \fBnpm init\fP should use by default for the package author's email\.
- <!\-\- automatically generated, do not edit manually \-\->
- <!\-\- see lib/utils/config/definitions\.js \-\->
- .SS \fBinit\-author\-name\fP
- .RS 0
- .IP \(bu 2
- Default: ""
- .IP \(bu 2
- Type: String
- .RE
- .P
- The value \fBnpm init\fP should use by default for the package author's name\.
- <!\-\- automatically generated, do not edit manually \-\->
- <!\-\- see lib/utils/config/definitions\.js \-\->
- .SS \fBinit\-author\-url\fP
- .RS 0
- .IP \(bu 2
- Default: ""
- .IP \(bu 2
- Type: "" or URL
- .RE
- .P
- The value \fBnpm init\fP should use by default for the package author's
- homepage\.
- <!\-\- automatically generated, do not edit manually \-\->
- <!\-\- see lib/utils/config/definitions\.js \-\->
- .SS \fBinit\-license\fP
- .RS 0
- .IP \(bu 2
- Default: "ISC"
- .IP \(bu 2
- Type: String
- .RE
- .P
- The value \fBnpm init\fP should use by default for the package license\.
- <!\-\- automatically generated, do not edit manually \-\->
- <!\-\- see lib/utils/config/definitions\.js \-\->
- .SS \fBinit\-module\fP
- .RS 0
- .IP \(bu 2
- Default: "~/\.npm\-init\.js"
- .IP \(bu 2
- Type: Path
- .RE
- .P
- A module that will be loaded by the \fBnpm init\fP command\. See the
- documentation for the
- init\-package\-json \fIhttps://github\.com/npm/init\-package\-json\fR module for
- more information, or npm help init\.
- <!\-\- automatically generated, do not edit manually \-\->
- <!\-\- see lib/utils/config/definitions\.js \-\->
- .SS \fBinit\-version\fP
- .RS 0
- .IP \(bu 2
- Default: "1\.0\.0"
- .IP \(bu 2
- Type: SemVer string
- .RE
- .P
- The value that \fBnpm init\fP should use by default for the package version
- number, if not already set in package\.json\.
- <!\-\- automatically generated, do not edit manually \-\->
- <!\-\- see lib/utils/config/definitions\.js \-\->
- .SS \fBjson\fP
- .RS 0
- .IP \(bu 2
- Default: false
- .IP \(bu 2
- Type: Boolean
- .RE
- .P
- Whether or not to output JSON data, rather than the normal output\.
- .RS 0
- .IP \(bu 2
- In \fBnpm pkg set\fP it enables parsing set values with JSON\.parse() before
- saving them to your \fBpackage\.json\fP\|\.
- .RE
- .P
- Not supported by all npm commands\.
- <!\-\- automatically generated, do not edit manually \-\->
- <!\-\- see lib/utils/config/definitions\.js \-\->
- .SS \fBkey\fP
- .RS 0
- .IP \(bu 2
- Default: null
- .IP \(bu 2
- Type: null or String
- .RE
- .P
- A client key to pass when accessing the registry\. Values should be in PEM
- format with newlines replaced by the string "\\n"\. For example:
- .P
- .RS 2
- .nf
- key="\-\-\-\-\-BEGIN PRIVATE KEY\-\-\-\-\-\\nXXXX\\nXXXX\\n\-\-\-\-\-END PRIVATE KEY\-\-\-\-\-"
- .fi
- .RE
- .P
- It is \fInot\fR the path to a key file (and there is no "keyfile" option)\.
- <!\-\- automatically generated, do not edit manually \-\->
- <!\-\- see lib/utils/config/definitions\.js \-\->
- .SS \fBlegacy\-bundling\fP
- .RS 0
- .IP \(bu 2
- Default: false
- .IP \(bu 2
- Type: Boolean
- .RE
- .P
- Causes npm to install the package such that versions of npm prior to 1\.4,
- such as the one included with node 0\.8, can install the package\. This
- eliminates all automatic deduping\. If used with \fBglobal\-style\fP this option
- will be preferred\.
- <!\-\- automatically generated, do not edit manually \-\->
- <!\-\- see lib/utils/config/definitions\.js \-\->
- .SS \fBlegacy\-peer\-deps\fP
- .RS 0
- .IP \(bu 2
- Default: false
- .IP \(bu 2
- Type: Boolean
- .RE
- .P
- Causes npm to completely ignore \fBpeerDependencies\fP when building a package
- tree, as in npm versions 3 through 6\.
- .P
- If a package cannot be installed because of overly strict \fBpeerDependencies\fP
- that collide, it provides a way to move forward resolving the situation\.
- .P
- This differs from \fB\-\-omit=peer\fP, in that \fB\-\-omit=peer\fP will avoid unpacking
- \fBpeerDependencies\fP on disk, but will still design a tree such that
- \fBpeerDependencies\fP \fIcould\fR be unpacked in a correct place\.
- .P
- Use of \fBlegacy\-peer\-deps\fP is not recommended, as it will not enforce the
- \fBpeerDependencies\fP contract that meta\-dependencies may rely on\.
- <!\-\- automatically generated, do not edit manually \-\->
- <!\-\- see lib/utils/config/definitions\.js \-\->
- .SS \fBlink\fP
- .RS 0
- .IP \(bu 2
- Default: false
- .IP \(bu 2
- Type: Boolean
- .RE
- .P
- Used with \fBnpm ls\fP, limiting output to only those packages that are linked\.
- <!\-\- automatically generated, do not edit manually \-\->
- <!\-\- see lib/utils/config/definitions\.js \-\->
- .SS \fBlocal\-address\fP
- .RS 0
- .IP \(bu 2
- Default: null
- .IP \(bu 2
- Type: IP Address
- .RE
- .P
- The IP address of the local interface to use when making connections to the
- npm registry\. Must be IPv4 in versions of Node prior to 0\.12\.
- <!\-\- automatically generated, do not edit manually \-\->
- <!\-\- see lib/utils/config/definitions\.js \-\->
- .SS \fBlocation\fP
- .RS 0
- .IP \(bu 2
- Default: "user" unless \fB\-\-global\fP is passed, which will also set this value
- to "global"
- .IP \(bu 2
- Type: "global", "user", or "project"
- .RE
- .P
- When passed to \fBnpm config\fP this refers to which config file to use\.
- <!\-\- automatically generated, do not edit manually \-\->
- <!\-\- see lib/utils/config/definitions\.js \-\->
- .SS \fBlockfile\-version\fP
- .RS 0
- .IP \(bu 2
- Default: Version 2 if no lockfile or current lockfile version less than or
- equal to 2, otherwise maintain current lockfile version
- .IP \(bu 2
- Type: null, 1, 2, 3, "1", "2", or "3"
- .RE
- .P
- Set the lockfile format version to be used in package\-lock\.json and
- npm\-shrinkwrap\-json files\. Possible options are:
- .P
- 1: The lockfile version used by npm versions 5 and 6\. Lacks some data that
- is used during the install, resulting in slower and possibly less
- deterministic installs\. Prevents lockfile churn when interoperating with
- older npm versions\.
- .P
- 2: The default lockfile version used by npm version 7\. Includes both the
- version 1 lockfile data and version 3 lockfile data, for maximum determinism
- and interoperability, at the expense of more bytes on disk\.
- .P
- 3: Only the new lockfile information introduced in npm version 7\. Smaller on
- disk than lockfile version 2, but not interoperable with older npm versions\.
- Ideal if all users are on npm version 7 and higher\.
- <!\-\- automatically generated, do not edit manually \-\->
- <!\-\- see lib/utils/config/definitions\.js \-\->
- .SS \fBloglevel\fP
- .RS 0
- .IP \(bu 2
- Default: "notice"
- .IP \(bu 2
- Type: "silent", "error", "warn", "notice", "http", "timing", "info",
- "verbose", or "silly"
- .RE
- .P
- What level of logs to report\. On failure, \fIall\fR logs are written to
- \fBnpm\-debug\.log\fP in the current working directory\.
- .P
- Any logs of a higher level than the setting are shown\. The default is
- "notice"\.
- .P
- See also the \fBforeground\-scripts\fP config\.
- <!\-\- automatically generated, do not edit manually \-\->
- <!\-\- see lib/utils/config/definitions\.js \-\->
- .SS \fBlogs\-max\fP
- .RS 0
- .IP \(bu 2
- Default: 10
- .IP \(bu 2
- Type: Number
- .RE
- .P
- The maximum number of log files to store\.
- <!\-\- automatically generated, do not edit manually \-\->
- <!\-\- see lib/utils/config/definitions\.js \-\->
- .SS \fBlong\fP
- .RS 0
- .IP \(bu 2
- Default: false
- .IP \(bu 2
- Type: Boolean
- .RE
- .P
- Show extended information in \fBls\fP, \fBsearch\fP, and \fBhelp\-search\fP\|\.
- <!\-\- automatically generated, do not edit manually \-\->
- <!\-\- see lib/utils/config/definitions\.js \-\->
- .SS \fBmaxsockets\fP
- .RS 0
- .IP \(bu 2
- Default: 15
- .IP \(bu 2
- Type: Number
- .RE
- .P
- The maximum number of connections to use per origin (protocol/host/port
- combination)\.
- <!\-\- automatically generated, do not edit manually \-\->
- <!\-\- see lib/utils/config/definitions\.js \-\->
- .SS \fBmessage\fP
- .RS 0
- .IP \(bu 2
- Default: "%s"
- .IP \(bu 2
- Type: String
- .RE
- .P
- Commit message which is used by \fBnpm version\fP when creating version commit\.
- .P
- Any "%s" in the message will be replaced with the version number\.
- <!\-\- automatically generated, do not edit manually \-\->
- <!\-\- see lib/utils/config/definitions\.js \-\->
- .SS \fBnode\-options\fP
- .RS 0
- .IP \(bu 2
- Default: null
- .IP \(bu 2
- Type: null or String
- .RE
- .P
- Options to pass through to Node\.js via the \fBNODE_OPTIONS\fP environment
- variable\. This does not impact how npm itself is executed but it does impact
- how lifecycle scripts are called\.
- <!\-\- automatically generated, do not edit manually \-\->
- <!\-\- see lib/utils/config/definitions\.js \-\->
- .SS \fBnode\-version\fP
- .RS 0
- .IP \(bu 2
- Default: Node\.js \fBprocess\.version\fP value
- .IP \(bu 2
- Type: SemVer string
- .RE
- .P
- The node version to use when checking a package's \fBengines\fP setting\.
- <!\-\- automatically generated, do not edit manually \-\->
- <!\-\- see lib/utils/config/definitions\.js \-\->
- .SS \fBnoproxy\fP
- .RS 0
- .IP \(bu 2
- Default: The value of the NO_PROXY environment variable
- .IP \(bu 2
- Type: String (can be set multiple times)
- .RE
- .P
- Domain extensions that should bypass any proxies\.
- .P
- Also accepts a comma\-delimited string\.
- <!\-\- automatically generated, do not edit manually \-\->
- <!\-\- see lib/utils/config/definitions\.js \-\->
- .SS \fBnpm\-version\fP
- .RS 0
- .IP \(bu 2
- Default: Output of \fBnpm \-\-version\fP
- .IP \(bu 2
- Type: SemVer string
- .RE
- .P
- The npm version to use when checking a package's \fBengines\fP setting\.
- <!\-\- automatically generated, do not edit manually \-\->
- <!\-\- see lib/utils/config/definitions\.js \-\->
- .SS \fBoffline\fP
- .RS 0
- .IP \(bu 2
- Default: false
- .IP \(bu 2
- Type: Boolean
- .RE
- .P
- Force offline mode: no network requests will be done during install\. To
- allow the CLI to fill in missing cache data, see \fB\-\-prefer\-offline\fP\|\.
- <!\-\- automatically generated, do not edit manually \-\->
- <!\-\- see lib/utils/config/definitions\.js \-\->
- .SS \fBomit\fP
- .RS 0
- .IP \(bu 2
- Default: 'dev' if the \fBNODE_ENV\fP environment variable is set to
- \|'production', otherwise empty\.
- .IP \(bu 2
- Type: "dev", "optional", or "peer" (can be set multiple times)
- .RE
- .P
- Dependency types to omit from the installation tree on disk\.
- .P
- Note that these dependencies \fIare\fR still resolved and added to the
- \fBpackage\-lock\.json\fP or \fBnpm\-shrinkwrap\.json\fP file\. They are just not
- physically installed on disk\.
- .P
- If a package type appears in both the \fB\-\-include\fP and \fB\-\-omit\fP lists, then
- it will be included\.
- .P
- If the resulting omit list includes \fB\|'dev'\fP, then the \fBNODE_ENV\fP environment
- variable will be set to \fB\|'production'\fP for all lifecycle scripts\.
- <!\-\- automatically generated, do not edit manually \-\->
- <!\-\- see lib/utils/config/definitions\.js \-\->
- .SS \fBotp\fP
- .RS 0
- .IP \(bu 2
- Default: null
- .IP \(bu 2
- Type: null or String
- .RE
- .P
- This is a one\-time password from a two\-factor authenticator\. It's needed
- when publishing or changing package permissions with \fBnpm access\fP\|\.
- .P
- If not set, and a registry response fails with a challenge for a one\-time
- password, npm will prompt on the command line for one\.
- <!\-\- automatically generated, do not edit manually \-\->
- <!\-\- see lib/utils/config/definitions\.js \-\->
- .SS \fBpack\-destination\fP
- .RS 0
- .IP \(bu 2
- Default: "\."
- .IP \(bu 2
- Type: String
- .RE
- .P
- Directory in which \fBnpm pack\fP will save tarballs\.
- <!\-\- automatically generated, do not edit manually \-\->
- <!\-\- see lib/utils/config/definitions\.js \-\->
- .SS \fBpackage\fP
- .RS 0
- .IP \(bu 2
- Default:
- .IP \(bu 2
- Type: String (can be set multiple times)
- .RE
- .P
- The package to install for npm help \fBexec\fP
- <!\-\- automatically generated, do not edit manually \-\->
- <!\-\- see lib/utils/config/definitions\.js \-\->
- .SS \fBpackage\-lock\fP
- .RS 0
- .IP \(bu 2
- Default: true
- .IP \(bu 2
- Type: Boolean
- .RE
- .P
- If set to false, then ignore \fBpackage\-lock\.json\fP files when installing\. This
- will also prevent \fIwriting\fR \fBpackage\-lock\.json\fP if \fBsave\fP is true\.
- .P
- When package package\-locks are disabled, automatic pruning of extraneous
- modules will also be disabled\. To remove extraneous modules with
- package\-locks disabled use \fBnpm prune\fP\|\.
- <!\-\- automatically generated, do not edit manually \-\->
- <!\-\- see lib/utils/config/definitions\.js \-\->
- .SS \fBpackage\-lock\-only\fP
- .RS 0
- .IP \(bu 2
- Default: false
- .IP \(bu 2
- Type: Boolean
- .RE
- .P
- If set to true, the current operation will only use the \fBpackage\-lock\.json\fP,
- ignoring \fBnode_modules\fP\|\.
- .P
- For \fBupdate\fP this means only the \fBpackage\-lock\.json\fP will be updated,
- instead of checking \fBnode_modules\fP and downloading dependencies\.
- .P
- For \fBlist\fP this means the output will be based on the tree described by the
- \fBpackage\-lock\.json\fP, rather than the contents of \fBnode_modules\fP\|\.
- <!\-\- automatically generated, do not edit manually \-\->
- <!\-\- see lib/utils/config/definitions\.js \-\->
- .SS \fBparseable\fP
- .RS 0
- .IP \(bu 2
- Default: false
- .IP \(bu 2
- Type: Boolean
- .RE
- .P
- Output parseable results from commands that write to standard output\. For
- \fBnpm search\fP, this will be tab\-separated table format\.
- <!\-\- automatically generated, do not edit manually \-\->
- <!\-\- see lib/utils/config/definitions\.js \-\->
- .SS \fBprefer\-offline\fP
- .RS 0
- .IP \(bu 2
- Default: false
- .IP \(bu 2
- Type: Boolean
- .RE
- .P
- If true, staleness checks for cached data will be bypassed, but missing data
- will be requested from the server\. To force full offline mode, use
- \fB\-\-offline\fP\|\.
- <!\-\- automatically generated, do not edit manually \-\->
- <!\-\- see lib/utils/config/definitions\.js \-\->
- .SS \fBprefer\-online\fP
- .RS 0
- .IP \(bu 2
- Default: false
- .IP \(bu 2
- Type: Boolean
- .RE
- .P
- If true, staleness checks for cached data will be forced, making the CLI
- look for updates immediately even for fresh package data\.
- <!\-\- automatically generated, do not edit manually \-\->
- <!\-\- see lib/utils/config/definitions\.js \-\->
- .SS \fBprefix\fP
- .RS 0
- .IP \(bu 2
- Default: In global mode, the folder where the node executable is installed\.
- In local mode, the nearest parent folder containing either a package\.json
- file or a node_modules folder\.
- .IP \(bu 2
- Type: Path
- .RE
- .P
- The location to install global items\. If set on the command line, then it
- forces non\-global commands to run in the specified folder\.
- <!\-\- automatically generated, do not edit manually \-\->
- <!\-\- see lib/utils/config/definitions\.js \-\->
- .SS \fBpreid\fP
- .RS 0
- .IP \(bu 2
- Default: ""
- .IP \(bu 2
- Type: String
- .RE
- .P
- The "prerelease identifier" to use as a prefix for the "prerelease" part of
- a semver\. Like the \fBrc\fP in \fB1\.2\.0\-rc\.8\fP\|\.
- <!\-\- automatically generated, do not edit manually \-\->
- <!\-\- see lib/utils/config/definitions\.js \-\->
- .SS \fBprogress\fP
- .RS 0
- .IP \(bu 2
- Default: \fBtrue\fP unless running in a known CI system
- .IP \(bu 2
- Type: Boolean
- .RE
- .P
- When set to \fBtrue\fP, npm will display a progress bar during time intensive
- operations, if \fBprocess\.stderr\fP is a TTY\.
- .P
- Set to \fBfalse\fP to suppress the progress bar\.
- <!\-\- automatically generated, do not edit manually \-\->
- <!\-\- see lib/utils/config/definitions\.js \-\->
- .SS \fBproxy\fP
- .RS 0
- .IP \(bu 2
- Default: null
- .IP \(bu 2
- Type: null, false, or URL
- .RE
- .P
- A proxy to use for outgoing http requests\. If the \fBHTTP_PROXY\fP or
- \fBhttp_proxy\fP environment variables are set, proxy settings will be honored
- by the underlying \fBrequest\fP library\.
- <!\-\- automatically generated, do not edit manually \-\->
- <!\-\- see lib/utils/config/definitions\.js \-\->
- .SS \fBread\-only\fP
- .RS 0
- .IP \(bu 2
- Default: false
- .IP \(bu 2
- Type: Boolean
- .RE
- .P
- This is used to mark a token as unable to publish when configuring limited
- access tokens with the \fBnpm token create\fP command\.
- <!\-\- automatically generated, do not edit manually \-\->
- <!\-\- see lib/utils/config/definitions\.js \-\->
- .SS \fBrebuild\-bundle\fP
- .RS 0
- .IP \(bu 2
- Default: true
- .IP \(bu 2
- Type: Boolean
- .RE
- .P
- Rebuild bundled dependencies after installation\.
- <!\-\- automatically generated, do not edit manually \-\->
- <!\-\- see lib/utils/config/definitions\.js \-\->
- .SS \fBregistry\fP
- .RS 0
- .IP \(bu 2
- Default: "https://registry\.npmjs\.org/"
- .IP \(bu 2
- Type: URL
- .RE
- .P
- The base URL of the npm registry\.
- <!\-\- automatically generated, do not edit manually \-\->
- <!\-\- see lib/utils/config/definitions\.js \-\->
- .SS \fBsave\fP
- .RS 0
- .IP \(bu 2
- Default: true
- .IP \(bu 2
- Type: Boolean
- .RE
- .P
- Save installed packages to a package\.json file as dependencies\.
- .P
- When used with the \fBnpm rm\fP command, removes the dependency from
- package\.json\.
- <!\-\- automatically generated, do not edit manually \-\->
- <!\-\- see lib/utils/config/definitions\.js \-\->
- .SS \fBsave\-bundle\fP
- .RS 0
- .IP \(bu 2
- Default: false
- .IP \(bu 2
- Type: Boolean
- .RE
- .P
- If a package would be saved at install time by the use of \fB\-\-save\fP,
- \fB\-\-save\-dev\fP, or \fB\-\-save\-optional\fP, then also put it in the
- \fBbundleDependencies\fP list\.
- .P
- Ignore if \fB\-\-save\-peer\fP is set, since peerDependencies cannot be bundled\.
- <!\-\- automatically generated, do not edit manually \-\->
- <!\-\- see lib/utils/config/definitions\.js \-\->
- .SS \fBsave\-dev\fP
- .RS 0
- .IP \(bu 2
- Default: false
- .IP \(bu 2
- Type: Boolean
- .RE
- .P
- Save installed packages to a package\.json file as \fBdevDependencies\fP\|\.
- <!\-\- automatically generated, do not edit manually \-\->
- <!\-\- see lib/utils/config/definitions\.js \-\->
- .SS \fBsave\-exact\fP
- .RS 0
- .IP \(bu 2
- Default: false
- .IP \(bu 2
- Type: Boolean
- .RE
- .P
- Dependencies saved to package\.json will be configured with an exact version
- rather than using npm's default semver range operator\.
- <!\-\- automatically generated, do not edit manually \-\->
- <!\-\- see lib/utils/config/definitions\.js \-\->
- .SS \fBsave\-optional\fP
- .RS 0
- .IP \(bu 2
- Default: false
- .IP \(bu 2
- Type: Boolean
- .RE
- .P
- Save installed packages to a package\.json file as \fBoptionalDependencies\fP\|\.
- <!\-\- automatically generated, do not edit manually \-\->
- <!\-\- see lib/utils/config/definitions\.js \-\->
- .SS \fBsave\-peer\fP
- .RS 0
- .IP \(bu 2
- Default: false
- .IP \(bu 2
- Type: Boolean
- .RE
- .P
- Save installed packages\. to a package\.json file as \fBpeerDependencies\fP
- <!\-\- automatically generated, do not edit manually \-\->
- <!\-\- see lib/utils/config/definitions\.js \-\->
- .SS \fBsave\-prefix\fP
- .RS 0
- .IP \(bu 2
- Default: "^"
- .IP \(bu 2
- Type: String
- .RE
- .P
- Configure how versions of packages installed to a package\.json file via
- \fB\-\-save\fP or \fB\-\-save\-dev\fP get prefixed\.
- .P
- For example if a package has version \fB1\.2\.3\fP, by default its version is set
- to \fB^1\.2\.3\fP which allows minor upgrades for that package, but after \fBnpm
- config set save\-prefix='~'\fP it would be set to \fB~1\.2\.3\fP which only allows
- patch upgrades\.
- <!\-\- automatically generated, do not edit manually \-\->
- <!\-\- see lib/utils/config/definitions\.js \-\->
- .SS \fBsave\-prod\fP
- .RS 0
- .IP \(bu 2
- Default: false
- .IP \(bu 2
- Type: Boolean
- .RE
- .P
- Save installed packages into \fBdependencies\fP specifically\. This is useful if
- a package already exists in \fBdevDependencies\fP or \fBoptionalDependencies\fP, but
- you want to move it to be a non\-optional production dependency\.
- .P
- This is the default behavior if \fB\-\-save\fP is true, and neither \fB\-\-save\-dev\fP
- or \fB\-\-save\-optional\fP are true\.
- <!\-\- automatically generated, do not edit manually \-\->
- <!\-\- see lib/utils/config/definitions\.js \-\->
- .SS \fBscope\fP
- .RS 0
- .IP \(bu 2
- Default: the scope of the current project, if any, or ""
- .IP \(bu 2
- Type: String
- .RE
- .P
- Associate an operation with a scope for a scoped registry\.
- .P
- Useful when logging in to or out of a private registry:
- .P
- .RS 2
- .nf
- # log in, linking the scope to the custom registry
- npm login \-\-scope=@mycorp \-\-registry=https://registry\.mycorp\.com
- # log out, removing the link and the auth token
- npm logout \-\-scope=@mycorp
- .fi
- .RE
- .P
- This will cause \fB@mycorp\fP to be mapped to the registry for future
- installation of packages specified according to the pattern
- \fB@mycorp/package\fP\|\.
- .P
- This will also cause \fBnpm init\fP to create a scoped package\.
- .P
- .RS 2
- .nf
- # accept all defaults, and create a package named "@foo/whatever",
- # instead of just named "whatever"
- npm init \-\-scope=@foo \-\-yes
- .fi
- .RE
- <!\-\- automatically generated, do not edit manually \-\->
- <!\-\- see lib/utils/config/definitions\.js \-\->
- .SS \fBscript\-shell\fP
- .RS 0
- .IP \(bu 2
- Default: '/bin/sh' on POSIX systems, 'cmd\.exe' on Windows
- .IP \(bu 2
- Type: null or String
- .RE
- .P
- The shell to use for scripts run with the \fBnpm exec\fP, \fBnpm run\fP and \fBnpm
- init <pkg>\fP commands\.
- <!\-\- automatically generated, do not edit manually \-\->
- <!\-\- see lib/utils/config/definitions\.js \-\->
- .SS \fBsearchexclude\fP
- .RS 0
- .IP \(bu 2
- Default: ""
- .IP \(bu 2
- Type: String
- .RE
- .P
- Space\-separated options that limit the results from search\.
- <!\-\- automatically generated, do not edit manually \-\->
- <!\-\- see lib/utils/config/definitions\.js \-\->
- .SS \fBsearchlimit\fP
- .RS 0
- .IP \(bu 2
- Default: 20
- .IP \(bu 2
- Type: Number
- .RE
- .P
- Number of items to limit search results to\. Will not apply at all to legacy
- searches\.
- <!\-\- automatically generated, do not edit manually \-\->
- <!\-\- see lib/utils/config/definitions\.js \-\->
- .SS \fBsearchopts\fP
- .RS 0
- .IP \(bu 2
- Default: ""
- .IP \(bu 2
- Type: String
- .RE
- .P
- Space\-separated options that are always passed to search\.
- <!\-\- automatically generated, do not edit manually \-\->
- <!\-\- see lib/utils/config/definitions\.js \-\->
- .SS \fBsearchstaleness\fP
- .RS 0
- .IP \(bu 2
- Default: 900
- .IP \(bu 2
- Type: Number
- .RE
- .P
- The age of the cache, in seconds, before another registry request is made if
- using legacy search endpoint\.
- <!\-\- automatically generated, do not edit manually \-\->
- <!\-\- see lib/utils/config/definitions\.js \-\->
- .SS \fBshell\fP
- .RS 0
- .IP \(bu 2
- Default: SHELL environment variable, or "bash" on Posix, or "cmd\.exe" on
- Windows
- .IP \(bu 2
- Type: String
- .RE
- .P
- The shell to run for the \fBnpm explore\fP command\.
- <!\-\- automatically generated, do not edit manually \-\->
- <!\-\- see lib/utils/config/definitions\.js \-\->
- .SS \fBsign\-git\-commit\fP
- .RS 0
- .IP \(bu 2
- Default: false
- .IP \(bu 2
- Type: Boolean
- .RE
- .P
- If set to true, then the \fBnpm version\fP command will commit the new package
- version using \fB\-S\fP to add a signature\.
- .P
- Note that git requires you to have set up GPG keys in your git configs for
- this to work properly\.
- <!\-\- automatically generated, do not edit manually \-\->
- <!\-\- see lib/utils/config/definitions\.js \-\->
- .SS \fBsign\-git\-tag\fP
- .RS 0
- .IP \(bu 2
- Default: false
- .IP \(bu 2
- Type: Boolean
- .RE
- .P
- If set to true, then the \fBnpm version\fP command will tag the version using
- \fB\-s\fP to add a signature\.
- .P
- Note that git requires you to have set up GPG keys in your git configs for
- this to work properly\.
- <!\-\- automatically generated, do not edit manually \-\->
- <!\-\- see lib/utils/config/definitions\.js \-\->
- .SS \fBstrict\-peer\-deps\fP
- .RS 0
- .IP \(bu 2
- Default: false
- .IP \(bu 2
- Type: Boolean
- .RE
- .P
- If set to \fBtrue\fP, and \fB\-\-legacy\-peer\-deps\fP is not set, then \fIany\fR
- conflicting \fBpeerDependencies\fP will be treated as an install failure, even
- if npm could reasonably guess the appropriate resolution based on non\-peer
- dependency relationships\.
- .P
- By default, conflicting \fBpeerDependencies\fP deep in the dependency graph will
- be resolved using the nearest non\-peer dependency specification, even if
- doing so will result in some packages receiving a peer dependency outside
- the range set in their package's \fBpeerDependencies\fP object\.
- .P
- When such and override is performed, a warning is printed, explaining the
- conflict and the packages involved\. If \fB\-\-strict\-peer\-deps\fP is set, then
- this warning is treated as a failure\.
- <!\-\- automatically generated, do not edit manually \-\->
- <!\-\- see lib/utils/config/definitions\.js \-\->
- .SS \fBstrict\-ssl\fP
- .RS 0
- .IP \(bu 2
- Default: true
- .IP \(bu 2
- Type: Boolean
- .RE
- .P
- Whether or not to do SSL key validation when making requests to the registry
- via https\.
- .P
- See also the \fBca\fP config\.
- <!\-\- automatically generated, do not edit manually \-\->
- <!\-\- see lib/utils/config/definitions\.js \-\->
- .SS \fBtag\fP
- .RS 0
- .IP \(bu 2
- Default: "latest"
- .IP \(bu 2
- Type: String
- .RE
- .P
- If you ask npm to install a package and don't tell it a specific version,
- then it will install the specified tag\.
- .P
- Also the tag that is added to the package@version specified by the \fBnpm tag\fP
- command, if no explicit tag is given\.
- .P
- When used by the \fBnpm diff\fP command, this is the tag used to fetch the
- tarball that will be compared with the local files by default\.
- <!\-\- automatically generated, do not edit manually \-\->
- <!\-\- see lib/utils/config/definitions\.js \-\->
- .SS \fBtag\-version\-prefix\fP
- .RS 0
- .IP \(bu 2
- Default: "v"
- .IP \(bu 2
- Type: String
- .RE
- .P
- If set, alters the prefix used when tagging a new version when performing a
- version increment using \fBnpm\-version\fP\|\. To remove the prefix altogether, set
- it to the empty string: \fB""\fP\|\.
- .P
- Because other tools may rely on the convention that npm version tags look
- like \fBv1\.0\.0\fP, \fIonly use this property if it is absolutely necessary\fR\|\. In
- particular, use care when overriding this setting for public packages\.
- <!\-\- automatically generated, do not edit manually \-\->
- <!\-\- see lib/utils/config/definitions\.js \-\->
- .SS \fBtiming\fP
- .RS 0
- .IP \(bu 2
- Default: false
- .IP \(bu 2
- Type: Boolean
- .RE
- .P
- If true, writes an \fBnpm\-debug\fP log to \fB_logs\fP and timing information to
- \fB_timing\.json\fP, both in your cache, even if the command completes
- successfully\. \fB_timing\.json\fP is a newline delimited list of JSON objects\.
- .P
- You can quickly view it with this json \fIhttps://npm\.im/json\fR command line:
- \fBnpm exec \-\- json \-g < ~/\.npm/_timing\.json\fP\|\.
- <!\-\- automatically generated, do not edit manually \-\->
- <!\-\- see lib/utils/config/definitions\.js \-\->
- .SS \fBumask\fP
- .RS 0
- .IP \(bu 2
- Default: 0
- .IP \(bu 2
- Type: Octal numeric string in range 0000\.\.0777 (0\.\.511)
- .RE
- .P
- The "umask" value to use when setting the file creation mode on files and
- folders\.
- .P
- Folders and executables are given a mode which is \fB0o777\fP masked against
- this value\. Other files are given a mode which is \fB0o666\fP masked against
- this value\.
- .P
- Note that the underlying system will \fIalso\fR apply its own umask value to
- files and folders that are created, and npm does not circumvent this, but
- rather adds the \fB\-\-umask\fP config to it\.
- .P
- Thus, the effective default umask value on most POSIX systems is 0o22,
- meaning that folders and executables are created with a mode of 0o755 and
- other files are created with a mode of 0o644\.
- <!\-\- automatically generated, do not edit manually \-\->
- <!\-\- see lib/utils/config/definitions\.js \-\->
- .SS \fBunicode\fP
- .RS 0
- .IP \(bu 2
- Default: false on windows, true on mac/unix systems with a unicode locale,
- as defined by the \fBLC_ALL\fP, \fBLC_CTYPE\fP, or \fBLANG\fP environment variables\.
- .IP \(bu 2
- Type: Boolean
- .RE
- .P
- When set to true, npm uses unicode characters in the tree output\. When
- false, it uses ascii characters instead of unicode glyphs\.
- <!\-\- automatically generated, do not edit manually \-\->
- <!\-\- see lib/utils/config/definitions\.js \-\->
- .SS \fBupdate\-notifier\fP
- .RS 0
- .IP \(bu 2
- Default: true
- .IP \(bu 2
- Type: Boolean
- .RE
- .P
- Set to false to suppress the update notification when using an older version
- of npm than the latest\.
- <!\-\- automatically generated, do not edit manually \-\->
- <!\-\- see lib/utils/config/definitions\.js \-\->
- .SS \fBusage\fP
- .RS 0
- .IP \(bu 2
- Default: false
- .IP \(bu 2
- Type: Boolean
- .RE
- .P
- Show short usage output about the command specified\.
- <!\-\- automatically generated, do not edit manually \-\->
- <!\-\- see lib/utils/config/definitions\.js \-\->
- .SS \fBuser\-agent\fP
- .RS 0
- .IP \(bu 2
- Default: "npm/{npm\-version} node/{node\-version} {platform} {arch}
- workspaces/{workspaces} {ci}"
- .IP \(bu 2
- Type: String
- .RE
- .P
- Sets the User\-Agent request header\. The following fields are replaced with
- their actual counterparts:
- .RS 0
- .IP \(bu 2
- \fB{npm\-version}\fP \- The npm version in use
- .IP \(bu 2
- \fB{node\-version}\fP \- The Node\.js version in use
- .IP \(bu 2
- \fB{platform}\fP \- The value of \fBprocess\.platform\fP
- .IP \(bu 2
- \fB{arch}\fP \- The value of \fBprocess\.arch\fP
- .IP \(bu 2
- \fB{workspaces}\fP \- Set to \fBtrue\fP if the \fBworkspaces\fP or \fBworkspace\fP options
- are set\.
- .IP \(bu 2
- \fB{ci}\fP \- The value of the \fBci\-name\fP config, if set, prefixed with \fBci/\fP, or
- an empty string if \fBci\-name\fP is empty\.
- .RE
- <!\-\- automatically generated, do not edit manually \-\->
- <!\-\- see lib/utils/config/definitions\.js \-\->
- .SS \fBuserconfig\fP
- .RS 0
- .IP \(bu 2
- Default: "~/\.npmrc"
- .IP \(bu 2
- Type: Path
- .RE
- .P
- The location of user\-level configuration settings\.
- .P
- This may be overridden by the \fBnpm_config_userconfig\fP environment variable
- or the \fB\-\-userconfig\fP command line option, but may \fInot\fR be overridden by
- settings in the \fBglobalconfig\fP file\.
- <!\-\- automatically generated, do not edit manually \-\->
- <!\-\- see lib/utils/config/definitions\.js \-\->
- .SS \fBversion\fP
- .RS 0
- .IP \(bu 2
- Default: false
- .IP \(bu 2
- Type: Boolean
- .RE
- .P
- If true, output the npm version and exit successfully\.
- .P
- Only relevant when specified explicitly on the command line\.
- <!\-\- automatically generated, do not edit manually \-\->
- <!\-\- see lib/utils/config/definitions\.js \-\->
- .SS \fBversions\fP
- .RS 0
- .IP \(bu 2
- Default: false
- .IP \(bu 2
- Type: Boolean
- .RE
- .P
- If true, output the npm version as well as node's \fBprocess\.versions\fP map and
- the version in the current working directory's \fBpackage\.json\fP file if one
- exists, and exit successfully\.
- .P
- Only relevant when specified explicitly on the command line\.
- <!\-\- automatically generated, do not edit manually \-\->
- <!\-\- see lib/utils/config/definitions\.js \-\->
- .SS \fBviewer\fP
- .RS 0
- .IP \(bu 2
- Default: "man" on Posix, "browser" on Windows
- .IP \(bu 2
- Type: String
- .RE
- .P
- The program to use to view help content\.
- .P
- Set to \fB"browser"\fP to view html help content in the default web browser\.
- <!\-\- automatically generated, do not edit manually \-\->
- <!\-\- see lib/utils/config/definitions\.js \-\->
- .SS \fBwhich\fP
- .RS 0
- .IP \(bu 2
- Default: null
- .IP \(bu 2
- Type: null or Number
- .RE
- .P
- If there are multiple funding sources, which 1\-indexed source URL to open\.
- <!\-\- automatically generated, do not edit manually \-\->
- <!\-\- see lib/utils/config/definitions\.js \-\->
- .SS \fBworkspace\fP
- .RS 0
- .IP \(bu 2
- Default:
- .IP \(bu 2
- Type: String (can be set multiple times)
- .RE
- .P
- Enable running a command in the context of the configured workspaces of the
- current project while filtering by running only the workspaces defined by
- this configuration option\.
- .P
- Valid values for the \fBworkspace\fP config are either:
- .RS 0
- .IP \(bu 2
- Workspace names
- .IP \(bu 2
- Path to a workspace directory
- .IP \(bu 2
- Path to a parent workspace directory (will result in selecting all
- workspaces within that folder)
- .RE
- .P
- When set for the \fBnpm init\fP command, this may be set to the folder of a
- workspace which does not yet exist, to create the folder and set it up as a
- brand new workspace within the project\.
- .P
- This value is not exported to the environment for child processes\.
- <!\-\- automatically generated, do not edit manually \-\->
- <!\-\- see lib/utils/config/definitions\.js \-\->
- .SS \fBworkspaces\fP
- .RS 0
- .IP \(bu 2
- Default: null
- .IP \(bu 2
- Type: null or Boolean
- .RE
- .P
- Set to true to run the command in the context of \fBall\fR configured
- workspaces\.
- .P
- Explicitly setting this to false will cause commands like \fBinstall\fP to
- ignore workspaces altogether\. When not set explicitly:
- .RS 0
- .IP \(bu 2
- Commands that operate on the \fBnode_modules\fP tree (install, update, etc\.)
- will link workspaces into the \fBnode_modules\fP folder\. \- Commands that do
- other things (test, exec, publish, etc\.) will operate on the root project,
- \fIunless\fR one or more workspaces are specified in the \fBworkspace\fP config\.
- .RE
- .P
- This value is not exported to the environment for child processes\.
- <!\-\- automatically generated, do not edit manually \-\->
- <!\-\- see lib/utils/config/definitions\.js \-\->
- .SS \fByes\fP
- .RS 0
- .IP \(bu 2
- Default: null
- .IP \(bu 2
- Type: null or Boolean
- .RE
- .P
- Automatically answer "yes" to any prompts that npm might print on the
- command line\.
- <!\-\- automatically generated, do not edit manually \-\->
- <!\-\- see lib/utils/config/definitions\.js \-\->
- .SS \fBalso\fP
- .RS 0
- .IP \(bu 2
- Default: null
- .IP \(bu 2
- Type: null, "dev", or "development"
- .IP \(bu 2
- DEPRECATED: Please use \-\-include=dev instead\.
- .RE
- .P
- When set to \fBdev\fP or \fBdevelopment\fP, this is an alias for \fB\-\-include=dev\fP\|\.
- <!\-\- automatically generated, do not edit manually \-\->
- <!\-\- see lib/utils/config/definitions\.js \-\->
- .SS \fBauth\-type\fP
- .RS 0
- .IP \(bu 2
- Default: "legacy"
- .IP \(bu 2
- Type: "legacy", "sso", "saml", or "oauth"
- .IP \(bu 2
- DEPRECATED: This method of SSO/SAML/OAuth is deprecated and will be removed
- in a future version of npm in favor of web\-based login\.
- .RE
- .P
- What authentication strategy to use with \fBadduser\fP/\fBlogin\fP\|\.
- <!\-\- automatically generated, do not edit manually \-\->
- <!\-\- see lib/utils/config/definitions\.js \-\->
- .SS \fBcache\-max\fP
- .RS 0
- .IP \(bu 2
- Default: Infinity
- .IP \(bu 2
- Type: Number
- .IP \(bu 2
- DEPRECATED: This option has been deprecated in favor of \fB\-\-prefer\-online\fP
- .RE
- .P
- \fB\-\-cache\-max=0\fP is an alias for \fB\-\-prefer\-online\fP
- <!\-\- automatically generated, do not edit manually \-\->
- <!\-\- see lib/utils/config/definitions\.js \-\->
- .SS \fBcache\-min\fP
- .RS 0
- .IP \(bu 2
- Default: 0
- .IP \(bu 2
- Type: Number
- .IP \(bu 2
- DEPRECATED: This option has been deprecated in favor of \fB\-\-prefer\-offline\fP\|\.
- .RE
- .P
- \fB\-\-cache\-min=9999 (or bigger)\fP is an alias for \fB\-\-prefer\-offline\fP\|\.
- <!\-\- automatically generated, do not edit manually \-\->
- <!\-\- see lib/utils/config/definitions\.js \-\->
- .SS \fBdev\fP
- .RS 0
- .IP \(bu 2
- Default: false
- .IP \(bu 2
- Type: Boolean
- .IP \(bu 2
- DEPRECATED: Please use \-\-include=dev instead\.
- .RE
- .P
- Alias for \fB\-\-include=dev\fP\|\.
- <!\-\- automatically generated, do not edit manually \-\->
- <!\-\- see lib/utils/config/definitions\.js \-\->
- .SS \fBinit\.author\.email\fP
- .RS 0
- .IP \(bu 2
- Default: ""
- .IP \(bu 2
- Type: String
- .IP \(bu 2
- DEPRECATED: Use \fB\-\-init\-author\-email\fP instead\.
- .RE
- .P
- Alias for \fB\-\-init\-author\-email\fP
- <!\-\- automatically generated, do not edit manually \-\->
- <!\-\- see lib/utils/config/definitions\.js \-\->
- .SS \fBinit\.author\.name\fP
- .RS 0
- .IP \(bu 2
- Default: ""
- .IP \(bu 2
- Type: String
- .IP \(bu 2
- DEPRECATED: Use \fB\-\-init\-author\-name\fP instead\.
- .RE
- .P
- Alias for \fB\-\-init\-author\-name\fP
- <!\-\- automatically generated, do not edit manually \-\->
- <!\-\- see lib/utils/config/definitions\.js \-\->
- .SS \fBinit\.author\.url\fP
- .RS 0
- .IP \(bu 2
- Default: ""
- .IP \(bu 2
- Type: "" or URL
- .IP \(bu 2
- DEPRECATED: Use \fB\-\-init\-author\-url\fP instead\.
- .RE
- .P
- Alias for \fB\-\-init\-author\-url\fP
- <!\-\- automatically generated, do not edit manually \-\->
- <!\-\- see lib/utils/config/definitions\.js \-\->
- .SS \fBinit\.license\fP
- .RS 0
- .IP \(bu 2
- Default: "ISC"
- .IP \(bu 2
- Type: String
- .IP \(bu 2
- DEPRECATED: Use \fB\-\-init\-license\fP instead\.
- .RE
- .P
- Alias for \fB\-\-init\-license\fP
- <!\-\- automatically generated, do not edit manually \-\->
- <!\-\- see lib/utils/config/definitions\.js \-\->
- .SS \fBinit\.module\fP
- .RS 0
- .IP \(bu 2
- Default: "~/\.npm\-init\.js"
- .IP \(bu 2
- Type: Path
- .IP \(bu 2
- DEPRECATED: Use \fB\-\-init\-module\fP instead\.
- .RE
- .P
- Alias for \fB\-\-init\-module\fP
- <!\-\- automatically generated, do not edit manually \-\->
- <!\-\- see lib/utils/config/definitions\.js \-\->
- .SS \fBinit\.version\fP
- .RS 0
- .IP \(bu 2
- Default: "1\.0\.0"
- .IP \(bu 2
- Type: SemVer string
- .IP \(bu 2
- DEPRECATED: Use \fB\-\-init\-version\fP instead\.
- .RE
- .P
- Alias for \fB\-\-init\-version\fP
- <!\-\- automatically generated, do not edit manually \-\->
- <!\-\- see lib/utils/config/definitions\.js \-\->
- .SS \fBonly\fP
- .RS 0
- .IP \(bu 2
- Default: null
- .IP \(bu 2
- Type: null, "prod", or "production"
- .IP \(bu 2
- DEPRECATED: Use \fB\-\-omit=dev\fP to omit dev dependencies from the install\.
- .RE
- .P
- When set to \fBprod\fP or \fBproduction\fP, this is an alias for \fB\-\-omit=dev\fP\|\.
- <!\-\- automatically generated, do not edit manually \-\->
- <!\-\- see lib/utils/config/definitions\.js \-\->
- .SS \fBoptional\fP
- .RS 0
- .IP \(bu 2
- Default: null
- .IP \(bu 2
- Type: null or Boolean
- .IP \(bu 2
- DEPRECATED: Use \fB\-\-omit=optional\fP to exclude optional dependencies, or
- \fB\-\-include=optional\fP to include them\.
- .RE
- .P
- Default value does install optional deps unless otherwise omitted\.
- .P
- Alias for \-\-include=optional or \-\-omit=optional
- <!\-\- automatically generated, do not edit manually \-\->
- <!\-\- see lib/utils/config/definitions\.js \-\->
- .SS \fBproduction\fP
- .RS 0
- .IP \(bu 2
- Default: null
- .IP \(bu 2
- Type: null or Boolean
- .IP \(bu 2
- DEPRECATED: Use \fB\-\-omit=dev\fP instead\.
- .RE
- .P
- Alias for \fB\-\-omit=dev\fP
- <!\-\- automatically generated, do not edit manually \-\->
- <!\-\- see lib/utils/config/definitions\.js \-\->
- .SS \fBshrinkwrap\fP
- .RS 0
- .IP \(bu 2
- Default: true
- .IP \(bu 2
- Type: Boolean
- .IP \(bu 2
- DEPRECATED: Use the \-\-package\-lock setting instead\.
- .RE
- .P
- Alias for \-\-package\-lock
- <!\-\- automatically generated, do not edit manually \-\->
- <!\-\- see lib/utils/config/definitions\.js \-\->
- .SS \fBsso\-poll\-frequency\fP
- .RS 0
- .IP \(bu 2
- Default: 500
- .IP \(bu 2
- Type: Number
- .IP \(bu 2
- DEPRECATED: The \-\-auth\-type method of SSO/SAML/OAuth will be removed in a
- future version of npm in favor of web\-based login\.
- .RE
- .P
- When used with SSO\-enabled \fBauth\-type\fPs, configures how regularly the
- registry should be polled while the user is completing authentication\.
- <!\-\- automatically generated, do not edit manually \-\->
- <!\-\- see lib/utils/config/definitions\.js \-\->
- .SS \fBsso\-type\fP
- .RS 0
- .IP \(bu 2
- Default: "oauth"
- .IP \(bu 2
- Type: null, "oauth", or "saml"
- .IP \(bu 2
- DEPRECATED: The \-\-auth\-type method of SSO/SAML/OAuth will be removed in a
- future version of npm in favor of web\-based login\.
- .RE
- .P
- If \fB\-\-auth\-type=sso\fP, the type of SSO type to use\.
- <!\-\- automatically generated, do not edit manually \-\->
- <!\-\- see lib/utils/config/definitions\.js \-\->
- .SS \fBtmp\fP
- .RS 0
- .IP \(bu 2
- Default: The value returned by the Node\.js \fBos\.tmpdir()\fP method
- https://nodejs\.org/api/os\.html#os_os_tmpdir
- .IP \(bu 2
- Type: Path
- .IP \(bu 2
- DEPRECATED: This setting is no longer used\. npm stores temporary files in a
- special location in the cache, and they are managed by
- \fBcacache\fP \fIhttp://npm\.im/cacache\fR\|\.
- .RE
- .P
- Historically, the location where temporary files were stored\. No longer
- relevant\.
- <!\-\- automatically generated, do not edit manually \-\->
- <!\-\- see lib/utils/config/definitions\.js \-\->
- <!\-\- AUTOGENERATED CONFIG DESCRIPTIONS END \-\->
- .SS See also
- .RS 0
- .IP \(bu 2
- npm help config
- .IP \(bu 2
- npm help npmrc
- .IP \(bu 2
- npm help scripts
- .IP \(bu 2
- npm help folders
- .IP \(bu 2
- npm help npm
- .RE
|