Table of contents
包的适用范围、访问级别以及可见性
Table of contents
Visibility of npm packages depends on the scope (namespace) in which the package is contained, and the access level (private or public) set for the package.
Note: To create organization-scoped packages, you must first create an organization. For more information, see "Creating an organization".
Public registry
Scope | Access level | Can view and download | Can write (publish) |
---|---|---|---|
Org | Private | Members of a team in the organization with read access to the package | Members of a team in the organization with read and write access to the package |
Org | Public | Everyone | Members of a team in the organization with read and write access to the package |
User | Private | The package owner and users who have been granted read access to the package | The package owner and users who have been granted read and write access to the package |
User | Public | Everyone | The package owner and users who have been granted read and write access to the package |
Unscoped | Public | Everyone | The package owner and users who have been granted read and write access to the package |
Note: Only user accounts can create and manage unscoped packages. Organizations can only manage scoped packages.
声明:npm 及相关 logo 的版权归 npmjs.com 所有。本站点仅用于 npm 中文文档,与 npmjs.com 没有任何关系。由于译者水平有限,且避免产生误解,条款和政策内容不进行翻译,关于这部分,请移步官网查看最新内容。