Logging in to an npm Enterprise registry from the command line

登录公司的npm Enterprise注册表的步骤将取决于您配置npm注册表设置的方式 .

Logging in with your default registry set to your company’s npm Enterprise registry

  1. 在命令行上,键入以下命令:
      npm login 
  2. 出现提示时,请提供您的SSO凭据.

Logging in with npmrc

  1. 在命令行上,切换到您的npm Enterprise配置文件:
      npmrc work 
  2. 运行以下命令:
      npm login 
  3. 出现提示时,请提供您的SSO凭据.

Logging in with a scope configured to point to an npm Enterprise registry

  1. 在命令行上,键入以下命令:
      npm login --registry=https://registry.company-name.npme.io 
  2. 出现提示时,请提供您的SSO凭据.

< Configuring your registry settings as an npm Enterprise user