liveBook · Manning

Package manager

As explained in Pro Angular 16

A package manager is software that resolves, downloads, installs, and manages software packages and their dependencies.

A package manager resolves a project's dependency hierarchy, downloads the required packages, and installs them in the node_modules folder. The initial package list lives in package.json, separated into runtime dependencies and development-only devDependencies. section 9.2.2

...
"dependencies": {
  "@angular/animations": "^16.0.0",
  "@angular/common": "^16.0.0",
  "@angular/compiler": "^16.0.0",
  "@angular/core": "^16.0.0",
  "@angular/forms": "^16.0.0",
  "@angular/platform-browser": "^16.0.0",
  "@angular/platform-browser-dynamic": "^16.0.0",
  "@angular/router": "^16.0.0",
  "rxjs": "~7.8.0",
  "tslib": "^2.3.0",
  "zone.js": "~0.13.0"
},
...

A package.json excerpt shows Angular runtime packages alongside RxJS, tslib, and zone.js, with version constraints. section 9.2.2

How Pro Angular 16 covers it

How deep it goes
Explains dependency traversal, installation locations, dependency categories, version ranges, and practical npm commands.
Examples
Uses Angular package listings, npm commands, package.json scripts, and Angular Material installation prompts.
What it assumes
Assumes familiarity with an Angular project and package.json while explaining dependency roles and npm commands directly.
What you can do after
Operate npm to install, inspect, execute, and configure packages and project scripts.
How it connects
Connects package managers with package.json, dependencies, devDependencies, node_modules, npm, and Angular CLI scripts.

Also explained in

Compare how 4 books explain package manager →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Pro Angular 16. The section links point to the parts of the book it draws on.