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 <bangin@example.org>",
"repository": {
"type": "git",
"url" : "https://github.com/AlexanderAllen/examplepackage"
},
"main" : "index",
"licenses": [{
"type": "MIT",
"url" : "http://en.wikipedia.org/wiki/MIT_License"
}]
}

#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.

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