npm config
Manage the
npmconfiguration settings. More information: https://docs.npmjs.com/cli/npm-config/.
- Show all configuration settings:
npm list
- List all configuration settings as
JSON:
npm list --json
- Get the value of a specific configuration key:
npm get
- Set a configuration key to a specific value:
npm set
- Delete a configuration key:
npm delete
- Edit the npm configuration file in the default editor (use the
--globalflag to edit the global config):
npm edit
- Attempt to repair invalid configuration items:
npm fix
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
