作为具有付费用户账户的 npm 用户，你可以添加另一个具有付费账户的 npm 用户作为你拥有的私有包的协作者。
英As an npm user with a paid user account, you can add another npm user with a paid account as a collaborator on a private package you own.
username 替换为他们的 npm 用户名。
英Note: The user you want to add as a collaborator on your private package must have a paid user account. To sign up for a paid account, they can visit
username with their npm username.
英When you add a member to your package, they are sent an email inviting them to the package. The new member has to accept the invitation to gain access to the package.
英Granting access to a private user package on the web
在 npm 网站 上，转到要添加协作者的包：
英On the npm website, go to the package to which you want to add a collaborator:
在包页面的 "合作者" 下，单击 +。
英On the package page, under "Collaborators", click +.
输入协作者的 npm 用户名。
英Enter the npm username of the collaborator.
英Granting private package access from the command line interface
<user> 替换为协作者的 npm 用户名，将
英To add a collaborator to a package on the command line, run the following command, replacing
<user> with the npm username of your collaborator, and
<your-package-name> with the name of the private package:
npm owner add <user> <your-package-name>
英Granting access to private organization packages
要授予 npm 用户对私有组织包的访问权限，你必须让组织所有者将它们添加到你的组织中，然后将它们添加到有权访问私有包的团队中。欲了解更多信息，请参阅“添加成员到你的组织”。
英To grant an npm user access to private organization packages, you must have an organization owner add them to your organization, then add them to a team that has access to the private package. For more information, see "Adding members to your organization".