See Details
目录
要使用私有包,你必须
¥To use private packages, you must
-
使用 npm 2.7.0 或更高版本。要升级,请在命令行上运行
npm install npm@latest -g
¥be using npm version 2.7.0 or greater. To upgrade, on the command line, run
npm install npm@latest -g
-
有一个 付费用户或组织账户
使用 npm 私有包,你可以使用 npm 注册表来托管仅对你和选定的协作者可见的代码,从而允许你在项目中管理和使用私有代码以及公共代码。
¥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