How to publish a public NPM package to an organization in 7 easy steps — 2019 edition

#1 — Log in to NPM (https://npm.js). Create a log in if you haven’t already.

#2 — On the top right profile drop-down menu, click on “Profile Settings”:

Click on Profile Settings

#3 — Once on the profile page, click on the Organizations plus button, it’s on the left side:

#4 — Create a new organization:

#5 — Reference your organization in your package.json before publishing it:

"name" : "@exampleorganization/example.package",
"version" : "1.0.0",
"description" : "An example package",
"keywords" : [ "example" ],
"author" : "alexanderallen <>",
"repository": {
"type": "git",
"url" : ""
"main" : "index",
"licenses": [{
"type": "MIT",
"url" : ""

#6 — Log in to NPM in the command line

npm login

#7 — Publish your new package with the access public flag turned on:

npm publish --access public

Organic, fair-sourced DevOps and Full-Stack things. This is a BYOB Establishment — Bring Your Own hipster Beard.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store