Skip to content
BENIBIX Learn

Package Manager

Development🛠️ Editors & ToolsPackages

A tool that fetches and updates the code packages your project needs.

Think of it like

Think of it like an app store for code. You ask for a package by name, and it fetches and installs it.

Example

Emma joins a team and clones its project. One install command fetches all 240 packages the project lists.

Why it matters

Without one, you would copy code by hand. You would track each version on your own too.

Definition

A package manager fetches, installs and updates the code your project needs. You type one command with a package's name, and it fetches the right version. It also fetches everything that package needs in turn. It writes down what it installed, so a teammate can get the exact same set. Most languages have their own, like npm for JavaScript and pip for Python.

Example code

console
$ npm install lodash

added 1 package, and audited 2 packages in 668ms

found 0 vulnerabilities
One command fetches the package and records it in the project file.

Common mistake

Not saving the lock file it writes. Then teammates install slightly different versions and get odd bugs.

Key takeaways

  1. 1
    One command. Ask by name, get the package.
  2. 2
    Brings what it needs. Dependencies of dependencies come too.
  3. 3
    Same set for all. A lock file pins every version.

Compare

Learn it properly