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.
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.
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.
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.
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.
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.
Also covered in
- Learn Docker in a Month of Lunches, Second Edition
- Get Programming with JavaScript Next: New features of ECMAScript 2015, 2016, and beyond
- Think Like a CTO
- Pro Angular 16
- Tiny CSS Projects
- Server-Side WebAssembly
- Build a Frontend Web Framework (From Scratch)
- The Art of Unit Testing 3e
- Terraform in Depth: Infrastructure as Code with Terraform and OpenTofu
What to know first
- JavaScriptJavaScript is a high-level, dynamically typed programming language standardized as ECMAScript and used for web and general-purpose programming.
- PythonPython is a high-level, general-purpose, dynamically typed programming language with readable syntax and support for multiple programming paradigms.
- CSSCSS (Cascading Style Sheets) is a stylesheet language for specifying the presentation and layout of structured documents.
- GoGo is a statically typed, compiled, general-purpose programming language with garbage collection and built-in support for concurrency.
Related concepts
- packageuses · A software package is a named unit that groups related software components, either for organization and compilation or for distribution and reuse.
- Node.jsused by · Node.js is an open-source JavaScript runtime built on the V8 engine for executing JavaScript outside web browsers.
- package.jsonuses · package.json is the standard JSON manifest for an npm or Node.js package, declaring metadata, dependencies, scripts, entry points, and related configuration.
- Create React Appused by · Create React App is a command-line tool that scaffolds React applications with a preconfigured project structure, dependencies, and development environment.
- npxused by · npx is an npm command-line package runner that executes package-provided binaries from local dependencies or downloads packages when needed, without requiring global installation.
- package managerkind of · A package manager is software that retrieves, resolves, installs, updates, removes, and manages software packages and their dependencies.
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.







