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

ScopeAccess levelCan view and downloadCan write (publish)
OrgPrivateMembers of a team in the organization with read access to the packageMembers of a team in the organization with read and write access to the package
OrgPublicEveryoneMembers of a team in the organization with read and write access to the package
UserPrivateThe package owner and users who have been granted read access to the packageThe package owner and users who have been granted read and write access to the package
UserPublicEveryoneThe package owner and users who have been granted read and write access to the package
UnscopedPublicEveryoneThe 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.

Edit this page on GitHub
1 contributormona
Last edited by mona on March 21, 2023
声明:npm 及相关 logo 的版权归 npmjs.com 所有。本站点仅用于 npm 中文文档,与 npmjs.com 没有任何关系。由于译者水平有限,且避免产生误解,条款和政策内容不进行翻译,关于这部分,请移步官网查看最新内容。