mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-08-05 03:35:34 +02:00
npm-config: add page (#15924)
This commit is contained in:
parent
987a7065e2
commit
634509b014
1 changed files with 32 additions and 0 deletions
32
pages/common/npm-config.md
Normal file
32
pages/common/npm-config.md
Normal file
|
@ -0,0 +1,32 @@
|
||||||
|
# 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:
|
||||||
|
|
||||||
|
`npm config set {{key}}={{value}}`
|
||||||
|
|
||||||
|
- 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`
|
Loading…
Add table
Reference in a new issue