Uploading NPM packages with NPM

Source: Internet
Author: User
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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.