From 634509b014e4bacb79735422984a86e716f01a12 Mon Sep 17 00:00:00 2001 From: Martin Blume Date: Mon, 17 Mar 2025 12:18:14 +0100 Subject: [PATCH] npm-config: add page (#15924) --- pages/common/npm-config.md | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 pages/common/npm-config.md diff --git a/pages/common/npm-config.md b/pages/common/npm-config.md new file mode 100644 index 0000000000..ed4887afef --- /dev/null +++ b/pages/common/npm-config.md @@ -0,0 +1,32 @@ +# npm-config + +> Manage the `npm` configuration settings. +> More information: . + +- 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`