IT:AD:npm:HowTo:Publish A Package
Summary
When you are ready to publish a packageā¦
Process
Create a user account:
- create a user account
npm adduser
Provide a username, password, and email address, and an npm registry account will be created.
Login to the site:
- login
npm login
To publish a package, cd to the package root folder.
Next, go to the local root folder (where the package.json file is), and use npm publish (it will use the name, description, etc. within the package.json):
- publish the package
npm publish