Npm
npm is a package-management system for JavaScript, comprising 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
- Manages packages and project metadata while setting up a Node.js microservice with Express.
- How deep it goes
- Works through initialization, installation, and dependency declarations; does not explain npm internals.
- Examples
- Uses `npm init -y`, `npm install express`, and an Express dependency entry in `package.json`.
- What you can do after
- Apply it via npm to initialize a project, install Express, and inspect its recorded dependency.
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 →
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.
Related concepts
- packageuses · A software package is a named grouping of modules or components, often with related resources and metadata, organized for import, reuse, distribution, or management.
- Node.jsused by · Node.js is an open-source JavaScript runtime built on the V8 engine that executes JavaScript outside web browsers and provides APIs for system and network operations.
- 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.
- package managerkind of · A package manager is software that retrieves, installs, updates, removes, and manages software packages and their dependencies.
- 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.
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.




