Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorisaacs <i@izs.me>2021-04-24 01:29:10 +0300
committerisaacs <i@izs.me>2021-04-24 01:39:53 +0300
commit72a7eeb493e0e71cba3af36490cb245030ed31a3 (patch)
tree1b35c937975cc68ba8c558074fdfbdb83d71ab94 /docs
parentc74e67fc6572bb001d74c7486c05d211a0e03de8 (diff)
Remove --always-auth config definition
As of the recent updates to npm-registry-fetch and @npmcli/config, this config field is no longer used anywhere. Prior to those changes, it was used, but not in the manner documented.
Diffstat (limited to 'docs')
-rw-r--r--docs/content/commands/npm-adduser.md19
-rw-r--r--docs/content/using-npm/config.md12
2 files changed, 3 insertions, 28 deletions
diff --git a/docs/content/commands/npm-adduser.md b/docs/content/commands/npm-adduser.md
index d0ddd68c2..9ad4c27c6 100644
--- a/docs/content/commands/npm-adduser.md
+++ b/docs/content/commands/npm-adduser.md
@@ -7,7 +7,7 @@ description: Add a registry user account
### Synopsis
```bash
-npm adduser [--registry=url] [--scope=@orgname] [--always-auth] [--auth-type=legacy]
+npm adduser [--registry=url] [--scope=@orgname] [--auth-type=legacy]
aliases: login, add-user
```
@@ -58,23 +58,6 @@ npm adduser --registry=http://myregistry.example.com --scope=@myco
This will set a registry for the given scope and login or create a user for
that registry at the same time.
-#### always-auth
-
-Default: false
-
-If specified, save configuration indicating that all requests to the given
-registry should include authorization information. Useful for private
-registries. Can be used with `--registry` and / or `--scope`, e.g.
-
-```bash
-npm adduser --registry=http://private-registry.example.com --always-auth
-```
-
-This will ensure that all requests to that registry (including for tarballs)
-include an authorization header. This setting may be necessary for use with
-private registries where metadata and package tarballs are stored on hosts with
-different hostnames. See `always-auth` in [`config`](/using-npm/config) for more details on always-auth. Registry-specific configuration of `always-auth` takes precedence over any global configuration.
-
#### auth-type
* Default: `'legacy'`
diff --git a/docs/content/using-npm/config.md b/docs/content/using-npm/config.md
index 1a70c29f9..76ac4192f 100644
--- a/docs/content/using-npm/config.md
+++ b/docs/content/using-npm/config.md
@@ -165,14 +165,6 @@ upon by the current project.
Prevents throwing an error when `npm version` is used to set the new version
to the same value as the current version.
-#### `always-auth`
-
-* Default: false
-* Type: Boolean
-
-Force npm to always require authentication when accessing the registry, even
-for `GET` requests.
-
#### `audit`
* Default: true
@@ -1087,8 +1079,8 @@ installation of packages specified according to the pattern
* Default: '/bin/sh' on POSIX systems, 'cmd.exe' on Windows
* Type: null or String
-The shell to use for scripts run with the `npm exec`, `npm run` and
-`npm init <pkg>` commands.
+The shell to use for scripts run with the `npm exec`, `npm run` and `npm
+init <pkg>` commands.
#### `searchexclude`