LinuxCommandLibrary

npm-config

manages npm configuration

TLDR

List all config

$ npm config list
copy
Get config value
$ npm config get [registry]
copy
Set config value
$ npm config set [registry] [https://registry.npmjs.org/]
copy
Delete config
$ npm config delete [key]
copy
Edit config file
$ npm config edit
copy
List all with defaults
$ npm config list -l
copy
Set global config
$ npm config set [key] [value] -g
copy

SYNOPSIS

npm config [command] [options]

DESCRIPTION

npm config manages npm configuration. Controls registry, proxy, and other settings.
The command modifies .npmrc files. Per-project or global configuration.

PARAMETERS

COMMAND

Config subcommand.
list
Show configuration.
get KEY
Get value.
set KEY VALUE
Set value.
delete KEY
Remove setting.
edit
Open editor.
--help
Display help information.

CAVEATS

Multiple .npmrc locations. Project overrides global. Credentials stored here.

HISTORY

npm config is the configuration management system for npm behavior customization.

SEE ALSO

npm(1), npmrc(5)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community