liveBook · Manning

Npm

Also called Node Package Manager

npm is a package-management system for JavaScript that includes a command-line client and an online registry for discovering, installing, and publishing packages.

How 8 Manning books explain it

Web Components in Action

npm is a package manager and software registry for JavaScript and Node.js packages.

How it is used
Uses npm to install JavaScript packages, provide local development tooling, and run project scripts.
How deep it goes
Defines installations, dependencies, package.json, and scripts, but only gestures toward larger build systems.
Examples
Demonstrates installing http-server globally, adding Web Components polyfills, initializing package.json, and defining a test script.
What you can do after
Operate/configure npm to install packages, record dependencies, distinguish development dependencies, and run package.json scripts.

Read how Web Components in Action explains npm →

Bootstrapping Microservices, Second Edition: With Docker, Kubernetes, GitHub Actions, and Terraform

The default package manager for Node.js that installs packages and manages project metadata and dependencies.

How it is used
Uses npm to set up a Node.js microservice project and add third-party packages.
How deep it goes
Walks through initialization, dependency installation, and package metadata, including default saving and version selection.
Examples
Uses an empty generated package.json and Express v5 beta installation to demonstrate project setup.
What you can do after
Apply npm to initialize a project, install a package, and inspect its dependency entry.

Read how Bootstrapping Microservices, Second Edition: With Docker, Kubernetes, GitHub Actions, and Terraform explains npm →

Secrets of the JavaScript Ninja, Third Edition

The package manager and registry ecosystem commonly used to install, publish, and manage JavaScript packages.

How it is used
Manages JavaScript project dependencies and supports tests and production builds, including for browser-targeted projects.
How deep it goes
Works through initialization, installation, dependency files, and script execution, while deferring full lifecycle-script details to npm documentation.
Examples
Uses an Express HTTP server installation and package.json scripts for greetings and ESLint.
What you can do after
Operate/configure it to install dependencies, reproduce a locked dependency tree, and run project scripts.

Read how Secrets of the JavaScript Ninja, Third Edition explains npm →

Essential TypeScript 5, Third Edition

npm is a package manager for installing and managing JavaScript packages and their dependencies.

How it is used
Uses npm to assemble and run the package-based toolchain for TypeScript projects and web applications.
How deep it goes
Explains dependency resolution, install scope, package.json records, version specifications, and commands; does not descend into npm implementation internals.
Examples
Uses npm init, versioned installs of TypeScript and tsc-watch, a package.json start script, and npm start.
What you can do after
Operate/configure it to initialize a project, install local development tools, distinguish dependency groups, and start a configured compiler script.

Read how Essential TypeScript 5, Third Edition explains npm →

Web Component Development with Modern Libraries and Tooling

npm is a package manager and registry ecosystem for JavaScript and Node.js packages.

How it is used
Uses npm to initialize web-component projects, install packages, and run local development scripts.
How deep it goes
Works through initialization, installation, and script commands, but does not explain npm internals.
Examples
Shows a Web Awesome button project, a Stencil starter project, and a vanilla custom-element demo.
What you can do after
Operate/configure it to install project dependencies and launch Vite or Stencil development servers.

Read how Web Component Development with Modern Libraries and Tooling explains npm →

Fast by Default

npm is a package manager and registry ecosystem for installing, resolving, and managing JavaScript packages.

How it is used
Manages Node.js dependencies while supporting build-time size checks and production installation.
How deep it goes
Traces dependency trees, measures installed packages, deduplicates versions, and excludes development dependencies, without covering package publishing.
Examples
Uses npm ls --all, npm dedupe, npm ci --omit=dev, npm-size, cost-of-modules, and node_modules size listings.
What you can do after
Diagnose/debug with it by locating duplicate, oversized, or unnecessary dependencies before production deployment.

Read how Fast by Default explains npm →

Road to Kubernetes

npm is the package manager and registry ecosystem commonly used to install and manage Node.js packages.

How it is used
Supports initializing Node.js applications and installing their third-party dependencies.
How deep it goes
Explains initialization, local installation, and package.json tracking without descending into npm internals.
Examples
Uses npm init, npm install express, package.json, and project-directory listings as practical examples.
What you can do after
Apply it via npm to initialize projects, install Express.js, and record dependencies automatically.

Read how Road to Kubernetes explains npm →

D3.js in Action, Third Edition

npm is a package manager and registry ecosystem for installing and managing JavaScript packages.

How it is used
Supports installing and importing JavaScript libraries in D3 projects and frontend applications.
How deep it goes
Explains npm’s package installation and module-import workflow, but does not detail registry internals or dependency resolution.
Examples
Uses npm install, npm install d3, npm run start, and a D3 namespace import in a React dashboard.
What you can do after
Operate/configure JavaScript projects by installing dependencies, adding D3, starting applications, and importing packages.

Read how D3.js in Action, Third Edition explains npm →

Also covered in

What to know first

Related concepts

Questions about npm

What is npm?

npm is a package-management system for JavaScript that includes a command-line client and an online registry for discovering, installing, and publishing packages.

Which Manning books explain npm?

Web Components in Action, Bootstrapping Microservices, Second Edition: With Docker, Kubernetes, GitHub Actions, and Terraform, Secrets of the JavaScript Ninja, Third Edition, Essential TypeScript 5, Third Edition, Web Component Development with Modern Libraries and Tooling, Fast by Default, Road to Kubernetes and D3.js in Action, Third Edition.

What should I know before learning npm?

Manning books that teach npm usually introduce JavaScript, Python, CSS and Go first.

What is npm a kind of?

Npm is a kind of package manager. A package manager is software that retrieves, resolves, installs, updates, removes, and manages software packages and their dependencies.

What is npm also called?

Npm is also called Node Package Manager.

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.