As a package maintainer, you may want to move a package into an Org so that all members or everyone on a specific team, can publish to the package.
Transferring packages between a user and an Org works slightly differently than transferring packages between users. There will be an extra step of adding the package to an Org team. The new maintainer or owner will also need to be the Org owner or team admin.
To transfer a package you own or maintain to an Org, follow these steps:
<your-package-name>with the name of your package:
To transfer a package to an Org using the CLI, on the command line, run the
npm owner add and
rm commands in order, replacing
<their-username> with the npm username of the Org owner or team admin, and
<your-username> with your npm username, and
<package-name> with the package you want to transfer:
npm owner add npm <their-username> <package-name> npm owner rm <your-username> <package-name>
If you have two-factor authentication enabled for writes, add a one-time password to the commands,
--otp=123456 (where 123456 is the code from your authenticator application).
npm owner add npm <their-username> <package-name> --otp=123456 npm owner rm <your-username> <package-name> --otp=123456