From 81015e82dfebae0eddebdfd10b3aa0fcbc248db1 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Fri, 20 Jan 2023 09:54:23 +1000 Subject: [PATCH] Apply suggestions from code review --- .../working-with-the-npm-registry.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/content/packages/working-with-a-github-packages-registry/working-with-the-npm-registry.md b/content/packages/working-with-a-github-packages-registry/working-with-the-npm-registry.md index 35b6b64395..51e552ba91 100644 --- a/content/packages/working-with-a-github-packages-registry/working-with-the-npm-registry.md +++ b/content/packages/working-with-a-github-packages-registry/working-with-the-npm-registry.md @@ -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: