Publishing NPM packages
- Signup for a
npmjs
accout at https://www.npmjs.com/ - Confirm account by going thru the confirmation email (This is an important step)
- Create a
package.json
by executing this commandnpm init
- Login using
npm login
- Publish package by executing this command
npm publish --scope public
Note: You’ll get a 403 response if the package name is already taken