Node Package Manager – NPM

One of the best virtues of using Node.js is NPM or Node Package Manager. It's an effective way for developers to collaborate on ideas by sharing codebase in a much faster way. However, this is not it. The best use of NPM is to download and install a different simple directory of code called the package. It can be done easily by just typing in simple commands (such as npm install express) that will download and install the entire package on your machine. With every package, there is a .json file that has the metadata about the package. In Unix-based environments, Node Package Managers not only help in downloading and setting up other packages, but are also able to update Node.js itself.

NPM is also another reason why Node.js ...

Get Mastering JavaScript Promises now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.