作为组织所有者或软件包维护者,你可以添加或删除组织中团队的软件包访问权限。
🌐 As an organization owner or package maintainer, you can add or remove package access to or from teams in your organization.
🌐 Adding package access to a team
🌐 Adding package access to a team on the web
在你想要为其添加软件包访问权限的团队旁,点击 软件包。
在“添加软件包”页面上的“软件包”字段中,输入软件包名称,然后从下拉菜单中选择。
点击 + 添加现有包。
在软件包名称旁边,点击 只读 或 读写 来设置该软件包的团队权限。
🌐 Adding package access to a team using the CLI
作为组织所有者或软件包维护者,你可以使用 CLI access 命令在命令行中为团队添加软件包访问权限:
🌐 As an organization owner or package maintainer, you can use the CLI access command to add package access to a team on the command line:
npm access grant <read-only|read-write> <org:team> [<package>]
有关更多信息,请参阅“npm访问”。
🌐 For more information, see "npm-access".
🌐 Removing package access from a team
🌐 Removing package access from a team on the web
在你想要移除软件包访问权限的团队旁,点击 Packages。
在你想要移除访问权限的软件包名称旁,点击 x。
🌐 Removing package access from a team using the CLI
作为组织所有者或包维护者,你还可以使用命令行工具 access 命令从命令行撤销团队对包的访问权限:
🌐 As an organization owner or package maintainer, you can also use the CLI access command to revoke package access from a team on the command line:
npm access revoke <org:team> [<package>]
有关更多信息,请参阅“npm访问”。
🌐 For more information, see "npm-access".
🌐 Changing package access for a team
🌐 Changing package access for a team on the web
在你想要移除软件包访问权限的团队旁,点击 Packages。
在软件包名称旁边,点击 只读 或 读写 来设置该软件包的团队权限。
🌐 Changing package access for a team from the CLI
作为组织所有者或软件包维护者,你可以从命令行更改团队的软件包访问权限:
🌐 As an organization owner or package maintainer, you can change package access for a team from the command line:
npm access
有关更多信息,请参阅 npm-access CLI 文档。
🌐 For more information, see the npm-access CLI documentation.