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.
Why projects depend on third-party code, and what a package manager actually does for you.
package.json & Installing DependenciesReading and editing your project's manifest, and installing, updating, and removing packages.
The main package manager options, how they differ, and how to pick one for a project.
Reading version numbers like ^2.1.0, and why a lockfile keeps installs consistent across machines.
Defining and running custom scripts for building, testing, and starting your project.
Packaging up your own code and publishing it for others to install.