npm 凭据(npm credentials)#
你可以使用以下凭据验证以下节点:
🌐 You can use these credentials to authenticate the following nodes:
先决条件(Prerequisites)#
创建一个npm账户。
🌐 Create an npm account.
支持的身份验证方法(Supported authentication methods)#
- API 访问令牌
相关资源(Related resources)#
有关该服务的更多信息,请参阅 npm 的外部集成文档。
🌐 Refer to npm's external integrations documentation for more information about the service.
使用 API 访问令牌(Using API access token)#
要配置此凭据,你需要:
🌐 To configure this credential, you'll need:
- 一个 访问令牌:通过从你的个人资料菜单中选择 访问令牌 来创建访问令牌。有关更详细的说明,请参阅 npm 创建和查看访问令牌的文档。
- 一个 注册表 URL:如果你正在使用自定义 npm 注册表,请将 注册表 URL 更新为该自定义注册表。否则,请保持使用公共注册表的值。