snippetbashTip
npm config — Manage the `npm` configuration settings. More information: <https://docs.npmjs.com/cli/npm-config/>.
Viewed 0 times
theconfigurationcommandnpmnpm configmanageclisettings
Problem
How to use the
npm config command: Manage the npm configuration settings. More information: <https://docs.npmjs.com/cli/npm-config/>.Solution
npm config — Manage the npm configuration settings. More information: <https://docs.npmjs.com/cli/npm-config/>.Show all configuration settings:
npm {{[c|config]}} listList all configuration settings as
JSON:npm {{[c|config]}} list --jsonGet the value of a specific configuration key:
npm {{[c|config]}} get {{key}}Set a configuration key to a specific value:
npm {{[c|config]}} set {{key}} {{value}}Delete a configuration key:
npm {{[c|config]}} delete {{key}}Edit the global npm configuration file in the default editor:
npm {{[c|config]}} editAttempt to repair invalid configuration items:
npm {{[c|config]}} fixCode Snippets
Show all configuration settings
npm {{[c|config]}} listList all configuration settings as `JSON`
npm {{[c|config]}} list --jsonGet the value of a specific configuration key
npm {{[c|config]}} get {{key}}Set a configuration key to a specific value
npm {{[c|config]}} set {{key}} {{value}}Delete a configuration key
npm {{[c|config]}} delete {{key}}Context
tldr-pages: common/npm config
Revisions (0)
No revisions yet.