Skip to content

Instantly share code, notes, and snippets.

@FutoRicky
Created February 27, 2015 19:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save FutoRicky/9f47118dd3843b1e11e4 to your computer and use it in GitHub Desktop.
Save FutoRicky/9f47118dd3843b1e11e4 to your computer and use it in GitHub Desktop.
How to publish a node module to NPM Registry (npmjs.com)

How to publish a node module to NPM

Push repo to github

Install package-validator (globally)

npm install package-json-validator -g

To validate package file

pjv (from current directory)
npm login

Note: This will ask you for your npm username, password and a public email.

npm publish
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment