1
0
mirror of synced 2026-01-08 12:01:53 -05:00

Apply suggestions from code review

This commit is contained in:
Vanessa
2023-01-20 09:54:23 +10:00
committed by GitHub
parent d02b645b08
commit 81015e82df

View File

@@ -70,7 +70,9 @@ If your instance has subdomain isolation disabled:
To authenticate by logging in to npm, use the `npm login` command, replacing *USERNAME* with your {% data variables.product.prodname_dotcom %} username, *TOKEN* with your {% data variables.product.pat_v1 %}, and *PUBLIC-EMAIL-ADDRESS* with your email address.
If {% data variables.product.prodname_registry %} is not your default package registry for using npm and you want to use the `npm audit` command, we recommend you use the `--scope` flag with the owner of the package when you authenticate to {% data variables.product.prodname_registry %}. We also recommend you use `--auth-type=legacy` flag if your npm is verion 9 or later to avoid `web login not supported` error.
If you are using npm CLI version 9 or greater and are logging in or out of a private registry using the command line, you should use the `--auth-type=legacy` option to read in your authentication details from prompts instead of using the default login flow through a browser. For more information, see [`npm-login`](https://docs.npmjs.com/cli/v9/commands/npm-login).
If {% data variables.product.prodname_registry %} is not your default package registry for using npm and you want to use the `npm audit` command, we recommend you use the `--scope` flag with the owner of the package when you authenticate to {% data variables.product.prodname_registry %}.
{% ifversion ghes %}
If your instance has subdomain isolation enabled: