Nodejs Learning four node. js NPM

Source: Internet
Author: User

What is NPM?

Do not know that everyone is not aware of, the Windows Platform node. JS installation package size is only 4M, can be used to describe it as a programming language, like Java An SDK is dozens of M, why is node. JS operating environment so small? The subtlety of this is that it has a huge third-party software library.

In the case that node itself provides a package (native) that does not have the function module we want to implement, we can go to find out if someone has implemented this function. After all, a lot of people don't want to do things like wheels.

Where do we go to find the bag we want? If you do not know the name of the newspaper, you can go to the https://www.npmjs.org/to look at each other, now I suggest to open this URL, to understand how the next node to provide us with a number of useful packages. The numbers you see today are: Totalpackages:75 059.

Well, what does NPM mean? Node Package Manager. This is it, a node's package manager, which has been built into node since Node0.60 began. Its function is install, Update, and Uninstall Packages. With it you can easily install your package, or update it.

Let's take a look at the options it provides at the command line, which is a common practice for understanding an executable program, like Linux, where you always use the man command to understand the detailed use of a command.

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.