Skip to content

Instantly share code, notes, and snippets.

@daominhsangvn
Last active December 13, 2017 05:03
Show Gist options
  • Save daominhsangvn/465cb7c57512beb8bc5c6ee1a456b38f to your computer and use it in GitHub Desktop.
Save daominhsangvn/465cb7c57512beb8bc5c6ee1a456b38f to your computer and use it in GitHub Desktop.
How to publish package to npmjs
  1. $ npm login or $ npm adduser from your Terminal to login to NpmJS
  2. Add file .npmignore then ignore files that will not neccessary for the publish version
  3. $ npm pack to test the output
  4. $ npm init --scope=nois config org for the package
  5. $ npm publish --access public
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment