reggi/fix-transform-prettier
@reggi/path-to-regexp
dependabot/npm_and_yarn/main/copy-to-clipboard-4.0.2
dependabot/npm_and_yarn/main/eslint-10.4.0
dependabot/npm_and_yarn/main/npmcli/eslint-config-7.0.0
dependabot/npm_and_yarn/main/proc-log-7.0.0
dependabot/npm_and_yarn/npm_and_yarn-826852524d
dependabot/npm_and_yarn/npm_and_yarn-ab9a7f4bc2
deprecate-totp-2fa
dhei/classic-tokens
gat-bypass-2fa-docs
jpg619/fix-accessibility-content-flow
jpg619/version-bump-tar-2
kartykp/gat-bypass-2fa-docs
kartykp/upgrade-path-to-regex
main
maitxn/version-bump-tar
patch-1
reggi/cache-based-on-version
reggi/dev-engines
reggi/fix-transform-prettier
reggi/overrides
update-search-sensitivity
| 1 | --- |
| 2 | title: Adding collaborators to private packages owned by a user account |
| 3 | --- |
| 4 | |
| 5 | 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. |
| 6 | |
| 7 | <Note> |
| 8 | |
| 9 | **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 `https://www.npmjs.com/settings/username/billing`, replacing `username` with their npm username. |
| 10 | |
| 11 | </Note> |
| 12 | |
| 13 | 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. |
| 14 | |
| 15 | ## Granting access to a private user package on the web |
| 16 | |
| 17 | 1. On the [npm website][npmjs-com], go to the package to which you want to add a collaborator: `https://www.npmjs.com/package/<your-package-name>`. |
| 18 | 2. On the package page, click the "Settings" tab. |
| 19 | 3. Go to the "Invite maintainer" section. |
| 20 | 4. Enter the npm username of the collaborator. |
| 21 | 5. Click **Invite**. |
| 22 | |
| 23 | ## Granting private package access from the command line interface |
| 24 | |
| 25 | 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: |
| 26 | |
| 27 | ``` |
| 28 | npm owner add <user> <your-package-name> |
| 29 | ``` |
| 30 | |
| 31 | ## Granting access to private organization packages |
| 32 | |
| 33 | 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][add-org-members]". |
| 34 | |
| 35 | [npmjs-com]: https://npmjs.com |
| 36 | [add-org-members]: adding-members-to-your-organization |