Publishing NPM packages
- Signup for a
npmjsaccout at https://www.npmjs.com/ - Confirm account by going thru the confirmation email (This is an important step)
- Create a
package.jsonby 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