DEV Community

Cover image for The 3 steps of publishing to npm
Lex Ned
Lex Ned

Posted on

The 3 steps of publishing to npm

A few days ago, I built a CLI for a key-value store. Now I had to share it with the world. For that, I used npm. And It was incredibly easy.

STEP 1
Register at https://www.npmjs.com/signup

STEP 2

npm login
Enter fullscreen mode Exit fullscreen mode

STEP 3

npm publish
Enter fullscreen mode Exit fullscreen mode

That's it. Now, don't forget to publish your module again after making changes. Also, don't forget to bump the version in package.json before publishing.

Top comments (0)