About private packages
See Details
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".