Step1: create an account (the cover of the article is from the Internet and deleted)

1. Visit www.npmjs.com/ to register your account;

2. Verification Email:

3. Once you have registered, go to the directory where you want to publish the component and log in:

NPM login (or: NPM login — Registry registry.npmjs.org)

Step2: handle errors

Sometimes this step pops up with an error:

Error:

Change the name and re-post it, it may have been used, change it, the suggested format is: @your account/package name

Step3: Successfully publish

The launch was a success

You will be notified by email after successful release

Good luck for you!