Do you have an account on https://www.npmjs.com?
Not sure? Try the following command to see if you are already logged in:
$ npm whoami
Also, go here to see if your name has been added to the NPM registry:
https://www.npmjs.com/~<user_name>
Example:
https://www.npmjs.com/~dantullis
If you don't have an account on NPMJS run the following command:
$ npm adduser
Follow the prompts and enter your username, password, and email address.
If you do have an account on NPMJS run the following command:
$ npm login
Follow the prompts and enter your username, password, and email address.
Note: Make sure your package name is unique
While inside the package directory run:
$ npm publish
Navigate to a page similar to:
https://www.npmjs.com/package/<package>
MIT