2025-03-17 12:18:14 +01:00
|
|
|
# npm-config
|
|
|
|
|
|
|
|
> Manage the `npm` configuration settings.
|
|
|
|
> More information: <https://docs.npmjs.com/cli/commands/npm-config>.
|
|
|
|
|
|
|
|
- Show all configuration settings:
|
|
|
|
|
|
|
|
`npm config list`
|
|
|
|
|
|
|
|
- List all configuration settings as `JSON`:
|
|
|
|
|
|
|
|
`npm config list --json`
|
|
|
|
|
|
|
|
- Get the value of a specific configuration key:
|
|
|
|
|
|
|
|
`npm config get {{key}}`
|
|
|
|
|
|
|
|
- Set a configuration key to a specific value:
|
|
|
|
|
2025-05-30 06:02:26 +02:00
|
|
|
`npm config set {{key}} {{value}}`
|
2025-03-17 12:18:14 +01:00
|
|
|
|
|
|
|
- Delete a configuration key:
|
|
|
|
|
|
|
|
`npm config delete {{key}}`
|
|
|
|
|
|
|
|
- Edit the global npm configuration file in the default editor:
|
|
|
|
|
|
|
|
`npm config edit`
|
|
|
|
|
|
|
|
- Attempt to repair invalid configuration items:
|
|
|
|
|
|
|
|
`npm config fix`
|