NPM is a node's package management repository, a Web site, and a command. How do I add a NPM package to node? It takes only three steps to get it done.
First step : In the beginning to open cmd into their own project, in the project directory entered NPM Init return will have a name appears enter this name (this
Name must be the only one for the whole network and the name of the file you want to publish. A Package.json package file is generated in the project and then
Carriage return until ... yes? Enter Yes in the rear.
Step two : Register an account with the NPM website, and then perform NPM adduser in the CMD's own project to configure users based on their account information.
Step three : After the configuration is complete, directly execute NPM Publish to publish, then go into your NPM, click on the triangle next to your avatar appears a
Level two drop-down menu and click Profile to see the project you're publishing.
Uploading NPM packages with NPM