Module 07 of 14

Package Managers

Lessons

About This Module

Package managers handle the third-party code your project depends on — installing it, tracking versions, and keeping everyone on the team using the same ones. This module covers npm (and its alternatives) from package.json through semantic versioning, lockfiles, and the scripts you'll run every day.

It's a shorter module, but a foundational one — you'll use a package manager on every project from here on. Work through these lessons, then move on to React to start building with a framework.

Lessons

6 videos · 1 article
01

What Is a Package Manager?

Why projects depend on third-party code, and what a package manager actually does for you.

02

package.json & Installing Dependencies

Reading and editing your project's manifest, and installing, updating, and removing packages.

03

npm vs Yarn vs pnpm

The main package manager options, how they differ, and how to pick one for a project.

04

Semantic Versioning & Lockfiles

Reading version numbers like ^2.1.0, and why a lockfile keeps installs consistent across machines.

05

npm Scripts & Running Tasks

Defining and running custom scripts for building, testing, and starting your project.

06

Publishing & Managing Your Own Packages

Packaging up your own code and publishing it for others to install.