Skip to content
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 16 additions & 3 deletions docs/content/using-npm/scope.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,22 @@ If you wish, you may associate a scope with a registry; see below.

#### Publishing public scoped packages to the primary npm registry

To publish a public scoped package, you must specify `--access public` with
the initial publication. This will publish the package and set access
to `public` as if you had run `npm access public` after publishing.
Publishing to a scope, you have two options:

- Publishing to your user scope (example: `@username/module`)
- Publishing to an organization scope (example: `@org/module`)

If publishing a public module to an organization scope, you must
first either create an organization with the name of the scope
that you'd like to publish to or be added to an existing organization
with the appropriate permisssions. For example, if you'd like to
publish to `@org`, you would need to create the `org` organization
on npmjs.com prior to trying to publish.

Once you will need to
specify `--access public` with the initial `npm publish` command.
This will publish the package and set access to `public` as if
you had run `npm access public` after publishing.
Comment thread
lukekarrys marked this conversation as resolved.
Outdated

#### Publishing private scoped packages to the npm registry

Expand Down