← Learn
Dangerous
npm publish --access public

cross-platform · bash · Beginner

Publishes the current package to the public registry. If the repository was meant to be private, this puts its source, and anything committed into it, in front of the whole internet permanently.

Signals to notice

  • --access public overrides the default scoping for a scoped package
  • a published version cannot be fully retracted once it has been fetched

Think you can spot these under time pressure?

Start Training

More CI/CD