npm 凭据#
¥npm credentials
你可以使用以下凭据验证以下节点:
¥You can use these credentials to authenticate the following nodes:
先决条件#
¥Prerequisites
创建 npm 账户
¥Create an npm account.
支持的身份验证方法#
¥Supported authentication methods
- API 访问令牌
¥API access token
相关资源#
¥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 创建和查看访问令牌文档 获取更详细的说明。
¥An Access Token: Create an access token by selecting Access Tokens from your profile menu. Refer to npm's Creating and viewing access tokens documentation for more detailed instructions.
- 注册表 URL:如果你使用的是自定义 npm 注册表,请将注册表 URL 更新为该自定义注册表的 URL。否则,请保留公共注册表值。
¥A Registry URL: If you're using a custom npm registry, update the Registry URL to that custom registry. Otherwise, keep the public registry value.