Chapter 7: How to Use the npm Node Package Manager

You can attribute much of Node’s success—and frustration—to npm. Node Package Manager provides ways to find, install, update, manage, publish, and remove Node.js packages. A package could be anything from a simple, one-line JavaScript module to a full application.

npm is the world’s largest software registry. Almost 1.5 million packages have been published at registry.npmjs.org and the majority are free to include in your own projects. You can publish your own package with a single command, and almost 1,000 developers do that every day.

Earlier chapters in this course introduced some npm concepts, but the following sections explain options you’ll use daily (plus a few you’ll use less frequently). ...

Get Node.js: Novice to Ninja 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.