Skip to content

[BUG] Docs: Missing info about access flag on npm publish #1341

@lobsterkatie

Description

@lobsterkatie

What / Why

Because the only way to turn a public package private (or vice versa) is to use npm access, using (or not using) the --access flag on the npm publish command (after the very first time a package is published) has no effect. It would be nice to note that on the publish docs page (and also here and here). Conversely, it also might be nice to note here that the way to originally set the visibility of a package is with npm publish --access.

When

n/a

Where

The pages linked in the description.

How

Current Behavior

No information about why the publish default (making a package private) doesn't apply after the first time a package is published.

Steps to Reproduce

n/a

Expected Behavior

Information included on page(s).

Who

n/a

References

n/a

Metadata

Metadata

Assignees

Labels

Good First Issuegood issue or PR for newcomersRelease 7.xwork is associated with a specific npm 7 release

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions