Skip to content

Commit

Permalink
docs(config): document npm config fix (npm#5819)
Browse files Browse the repository at this point in the history
  • Loading branch information
wraithgar authored Nov 7, 2022
1 parent 50d2ec2 commit 1bff064
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions docs/lib/content/commands/npm-config.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

<!-- AUTOGENERATED CONFIG DESCRIPTIONS -->
Expand Down

0 comments on commit 1bff064

Please sign in to comment.