/
snap
/
node
/
11691
/
lib
/
node_modules
/
npm
/
docs
/
content
/
commands
/
/snap/node/11691/lib/node_modules/npm/docs/content/commands
mkdir
upload
Name
Size
Mode
Actions
npm-access.md
3664
0644
edit
dl
rm
npm-adduser.md
1847
0644
edit
dl
rm
npm-audit.md
15656
0644
edit
dl
rm
npm-bugs.md
2996
0644
edit
dl
rm
npm-cache.md
2962
0644
edit
dl
rm
npm-ci.md
9125
0644
edit
dl
rm
npm-completion.md
909
0644
edit
dl
rm
npm-config.md
4093
0644
edit
dl
rm
npm-dedupe.md
8895
0644
edit
dl
rm
npm-deprecate.md
1741
0644
edit
dl
rm
npm-diff.md
9109
0644
edit
dl
rm
npm-dist-tag.md
5181
0644
edit
dl
rm
npm-docs.md
2974
0644
edit
dl
rm
npm-doctor.md
5057
0644
edit
dl
rm
npm-edit.md
1091
0644
edit
dl
rm
npm-exec.md
11401
0644
edit
dl
rm
npm-explain.md
2795
0644
edit
dl
rm
npm-explore.md
1006
0644
edit
dl
rm
npm-find-dupes.md
6797
0644
edit
dl
rm
npm-fund.md
3673
0644
edit
dl
rm
npm-help-search.md
756
0644
edit
dl
rm
npm-help.md
1004
0644
edit
dl
rm
npm-hook.md
2394
0644
edit
dl
rm
npm-init.md
9855
0644
edit
dl
rm
npm-install-ci-test.md
7434
0644
edit
dl
rm
npm-install-test.md
9814
0644
edit
dl
rm
npm-install.md
24984
0644
edit
dl
rm
npm-link.md
11742
0644
edit
dl
rm
npm-login.md
2171
0644
edit
dl
rm
npm-logout.md
1749
0644
edit
dl
rm
npm-ls.md
8547
0644
edit
dl
rm
npm-org.md
1975
0644
edit
dl
rm
npm-outdated.md
5779
0644
edit
dl
rm
npm-owner.md
3093
0644
edit
dl
rm
npm-pack.md
3448
0644
edit
dl
rm
npm-ping.md
769
0644
edit
dl
rm
npm-pkg.md
8129
0644
edit
dl
rm
npm-prefix.md
1211
0644
edit
dl
rm
npm-profile.md
3102
0644
edit
dl
rm
npm-prune.md
5745
0644
edit
dl
rm
npm-publish.md
7622
0644
edit
dl
rm
npm-query.md
6958
0644
edit
dl
rm
npm-rebuild.md
5001
0644
edit
dl
rm
npm-repo.md
2754
0644
edit
dl
rm
npm-restart.md
1473
0644
edit
dl
rm
npm-root.md
1097
0644
edit
dl
rm
npm-run-script.md
7561
0644
edit
dl
rm
npm-sbom.md
8337
0644
edit
dl
rm
npm-search.md
3464
0644
edit
dl
rm
npm-shrinkwrap.md
923
0644
edit
dl
rm
npm-star.md
1713
0644
edit
dl
rm
npm-stars.md
743
0644
edit
dl
rm
npm-start.md
1667
0644
edit
dl
rm
npm-stop.md
1341
0644
edit
dl
rm
npm-team.md
4090
0644
edit
dl
rm
npm-test.md
1234
0644
edit
dl
rm
npm-token.md
2893
0644
edit
dl
rm
npm-uninstall.md
4447
0644
edit
dl
rm
npm-unpublish.md
4491
0644
edit
dl
rm
npm-unstar.md
1574
0644
edit
dl
rm
npm-update.md
11871
0644
edit
dl
rm
npm-version.md
6902
0644
edit
dl
rm
npm-view.md
5612
0644
edit
dl
rm
npm-whoami.md
800
0644
edit
dl
rm
npm.md
5670
0644
edit
dl
rm
npx.md
5895
0644
edit
dl
rm
Edit:
/snap/node/11691/lib/node_modules/npm/docs/content/commands/npm-config.md
(4093B)
--- title: npm-config section: 1 description: Manage the npm configuration files --- ### Synopsis ```bash npm config set <key>=<value> [<key>=<value> ...] npm config get [<key> [<key> ...]] npm config delete <key> [<key> ...] npm config list [--json] npm config edit npm config fix alias: c ``` Note: This command is unaware of workspaces. ### Description npm gets its config settings from the command line, environment variables, `npmrc` files, and in some cases, the `package.json` file. See [npmrc](/configuring-npm/npmrc) for more information about the npmrc files. See [config](/using-npm/config) for a more thorough explanation of the mechanisms involved, and a full list of config options available. The `npm config` command can be used to update and edit the contents of the user and global npmrc files. ### Sub-commands Config supports the following sub-commands: #### set ```bash npm config set key=value [key=value...] npm set key=value [key=value...] ``` Sets each of the config keys to the value provided. Modifies the user configuration file unless [`location`](/commands/npm-config#location) is passed. If value is omitted, the key will be removed from your config file entirely. Note: for backwards compatibility, `npm config set key value` is supported as an alias for `npm config set key=value`. #### get ```bash npm config get [key ...] npm get [key ...] ``` Echo the config value(s) to stdout. If multiple keys are provided, then the values will be prefixed with the key names. If no keys are provided, then this command behaves the same as `npm config list`. #### list ```bash npm config list ``` Show all the config settings. Use `-l` to also show defaults. Use `--json` to show the settings in json format. #### delete ```bash npm config delete key [key ...] ``` Deletes the specified keys from all configuration files. #### edit ```bash npm config edit ``` Opens the config file in an editor. Use the `--global` flag to edit the global config. #### fix ```bash npm config fix ``` Attempts to repair invalid configuration items. Usually this means attaching authentication config (i.e. `_auth`, `_authToken`) to the configured `registry`. ### Configuration #### `json` * Default: false * Type: Boolean Whether or not to output JSON data, rather than the normal output. * In `npm pkg set` it enables parsing set values with JSON.parse() before saving them to your `package.json`. Not supported by all npm commands. #### `global` * Default: false * Type: Boolean Operates in "global" mode, so that packages are installed into the `prefix` folder instead of the current working directory. See [folders](/configuring-npm/folders) for more on the differences in behavior. * packages are installed into the `{prefix}/lib/node_modules` folder, instead of the current working directory. * bin files are linked to `{prefix}/bin` * man pages are linked to `{prefix}/share/man` #### `editor` * Default: The EDITOR or VISUAL environment variables, or '%SYSTEMROOT%\notepad.exe' on Windows, or 'vi' on Unix systems * Type: String The command to run for `npm edit` and `npm config edit`. #### `location` * Default: "user" unless `--global` is passed, which will also set this value to "global" * Type: "global", "user", or "project" When passed to `npm config` this refers to which config file to use. When set to "global" mode, packages are installed into the `prefix` folder instead of the current working directory. See [folders](/configuring-npm/folders) for more on the differences in behavior. * packages are installed into the `{prefix}/lib/node_modules` folder, instead of the current working directory. * bin files are linked to `{prefix}/bin` * man pages are linked to `{prefix}/share/man` #### `long` * Default: false * Type: Boolean Show extended information in `ls`, `search`, and `help-search`. ### See Also * [npm folders](/configuring-npm/folders) * [npm config](/commands/npm-config) * [package.json](/configuring-npm/package-json) * [npmrc](/configuring-npm/npmrc) * [npm](/commands/npm)
Save
cmd:
run