summaryrefslogtreecommitdiff
path: root/deps/npm/docs/output/using-npm/scope.html
diff options
context:
space:
mode:
authornpm-robot <ops+robot@npmjs.com>2022-04-28 18:41:15 +0530
committerGitHub <noreply@github.com>2022-04-28 14:11:15 +0100
commit63503a4f72067959b02f88f17a1ef333a1b6daed (patch)
tree9430b7937f1625f7643d10ed83b6eef964082c71 /deps/npm/docs/output/using-npm/scope.html
parent4ecfe3fb2832bcdbd1681bf0eb4046ea5d511866 (diff)
downloadnode-new-63503a4f72067959b02f88f17a1ef333a1b6daed.tar.gz
deps: upgrade npm to 8.8.0
PR-URL: https://github.com/nodejs/node/pull/42886 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Mohammed Keyvanzadeh <mohammadkeyvanzade94@gmail.com> Reviewed-By: Mestery <mestery@protonmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Diffstat (limited to 'deps/npm/docs/output/using-npm/scope.html')
-rw-r--r--deps/npm/docs/output/using-npm/scope.html19
1 files changed, 16 insertions, 3 deletions
diff --git a/deps/npm/docs/output/using-npm/scope.html b/deps/npm/docs/output/using-npm/scope.html
index db6fc2a115..61ab698b5f 100644
--- a/deps/npm/docs/output/using-npm/scope.html
+++ b/deps/npm/docs/output/using-npm/scope.html
@@ -194,9 +194,22 @@ registry.</p>
<strong>does</strong> support scoped packages.)</p>
<p>If you wish, you may associate a scope with a registry; see below.</p>
<h4 id="publishing-public-scoped-packages-to-the-primary-npm-registry">Publishing public scoped packages to the primary npm registry</h4>
-<p>To publish a public scoped package, you must specify <code>--access public</code> with
-the initial publication. This will publish the package and set access
-to <code>public</code> as if you had run <code>npm access public</code> after publishing.</p>
+<p>Publishing to a scope, you have two options:</p>
+<ul>
+<li>Publishing to your user scope (example: <code>@username/module</code>)</li>
+<li>Publishing to an organization scope (example: <code>@org/module</code>)</li>
+</ul>
+<p>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 <code>@org</code>, you would need to create the <code>org</code> organization
+on npmjs.com prior to trying to publish.</p>
+<p>Scoped packages are not public by default. You will need to specify
+<code>--access public</code> with the initial <code>npm publish</code> command. This will publish
+the package and set access to <code>public</code> as if you had run <code>npm access public</code>
+after publishing. You do not need to do this when publishing new versions of
+an existing scoped package.</p>
<h4 id="publishing-private-scoped-packages-to-the-npm-registry">Publishing private scoped packages to the npm registry</h4>
<p>To publish a private scoped package to the npm registry, you must have
an <a href="https://docs.npmjs.com/private-modules/intro">npm Private Modules</a>