Chapter 3: A Beginner’s Guide to npm — the Node Package Manager
by Michael Wanyoike & Peter Dierx
To make use of these tools (or packages) in Node.js we need to be able to install and manage them in a useful way. This is where npm, the Node package manager, comes in. It installs the packages you want to use and provides a useful interface to work with them.
In this chapter, I'm going to look at the basics of working with npm. I will show you how to install packages in local and global mode, as well as delete, update and install a certain version of a package. I'll also show you how to work with package.json
to manage a project's dependencies. If you're more of a video person, why not sign up for SitePoint Premium and watch our free screencast: ...
Get Your First Week With Node.js 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.