Table of contents
About private packages
Table of contents
To use private packages, you must
- be using npm version 2.7.0 or greater. To upgrade, on the command line, run
npm install npm@latest -g
- have a paid user or organization account
With npm private packages, you can use the npm registry to host code that is only visible to you and chosen collaborators, allowing you to manage and use private code alongside public code in your projects.
Private packages always have a scope, and scoped packages are private by default.
- User-scoped private packages can only be accessed by you and collaborators to whom you have granted read or read/write access. For more information, see "Adding collaborators to private packages owned by a user account".
- Organization-scoped private packages can only be accessed by teams that have been granted read or read/write access. For more information, see "Managing team access to organization packages".
Next steps
Resources
Edit this page on GitHub
Last edited by lukekarrys on October 23, 2023