From 302c173f0db293a8b7075211b7649568ef8692d2 Mon Sep 17 00:00:00 2001 From: Gar Date: Wed, 2 Nov 2022 09:03:51 -0700 Subject: [PATCH] docs(config): document `npm config fix` --- docs/lib/content/commands/npm-config.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/docs/lib/content/commands/npm-config.md b/docs/lib/content/commands/npm-config.md index 270858f8bff8f..5267d49960fe7 100644 --- a/docs/lib/content/commands/npm-config.md +++ b/docs/lib/content/commands/npm-config.md @@ -83,6 +83,16 @@ npm config edit Opens the config file in an editor. Use the `--global` flag to edit the global config. +#### fix + +```bash +npm config fix +``` + +Attempts to repair invalid configuration items. Usually this means +attaching authentication config (i.e. `_auth`, `_authToken`) to the +configured `registry`. + ### Configuration