How to publish node package to NPM registry

ยท

1 min read

Hi everyone ๐Ÿ‘‹. In this article, I'm going to discuss how to push your own packages to the npm registry.

Step 1:

To publish npm packages you must have an npm user account. Sign up for an npm user account using https://www.npmjs.com/signup link.

Step 2:

Open a command line tool in your package and type the below command. and then enter your username, password, email address and OTP.
npm login

Step 3:

Then use npm command npm publish to publish your package to npm registry

.This is the package I published to the npm registry โœŒ๏ธ.

ย