作为组织所有者或团队管理员,你可以将组织成员添加到团队,以授予他们访问由组织管理的特定包集的访问权限。

¥As an organization owner or team admin, you can add organization members to teams to give them access to a specific set of packages governed by the organization.

注意:npm 用户必须是你组织的成员,然后才能将其添加到团队中。要将成员添加到你的组织,请参阅“添加成员到你的组织”。

¥Note: An npm user must be a member of your organization before you can add them to a team. To add a member to your organization, see "Adding members to your organization".

  1. 在 npm“登录”页面上,输入您的帐户详细信息并单击登录 Screenshot of npm login dialog
  2. 在页面的右上角,点击您的个人资料照片,然后点击帐户 Screenshot of account settings selection in user menu
  3. 在左侧边栏中,单击您的组织名称。 Screenshot of a selected organization
  4. 在组织设置页面上,单击团队 Screenshot of the organization teams tab
  5. 在要添加成员的团队旁边,单击“成员”。

    ¥Beside the team you want to add members to, click Members.

    Screenshot of the team members button
  6. 在 "用户名" 字段中,输入你要添加到团队中的组织成员的 npm 用户名。

    ¥In the "Username" field, type the npm username of the organization member you would like to add to your team.

    Screenshot of the team member selection
  7. 单击“+ 添加用户”。

    ¥Click + Add User.

    Screenshot of the team member add button

注意:组织成员被添加到团队时不会收到通知。我们建议告诉组织成员你已将他们添加到团队中。

¥Note: organization members are not notified when they are added to a team. We recommend telling the organization member you have added them to a team.

从 CLI 管理团队

¥Managing teams from the CLI

如果你想从命令行接口 (CLI) 管理你的团队成员,你可以使用:

¥If you would like to manage the membership of your team from the command line interface (CLI), you can use:

npm team

有关详细信息,请参阅 关于团队的 CLI 文档

¥For more information, see the CLI documentation on teams.

npm 中文网 - 粤ICP备13048890号