Npx
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.
Bootstrapping Microservices, Second Edition: With Docker, Kubernetes, GitHub Actions, and Terraform
A Node.js command-line utility for executing packages installed in a project's local dependencies.
- How it is used
- Runs project-local Node.js tools for development workflows and automated testing.
- How deep it goes
- Explains local command execution, version isolation, and development dependency usage, but does not detail npx internals.
- Examples
- Uses npx nodemon src/index.js and npx jest --init as runnable project commands.
- What you can do after
- Operate locally installed Node.js tools while keeping project versions explicit and production installations smaller.
Build Financial Software with Generative AI (From Scratch)
npx is a command-line package runner distributed with npm for executing packages without requiring a global installation.
- How it is used
- Simplifies initializing a Next.js dashboard and verifying its local development setup.
- How deep it goes
- Defines npx as a command-line tool and demonstrates one project-generation command without explaining its internal execution model.
- Examples
- Uses create-next-app@latest to generate a Next.js project and checks its default page at localhost:3000.
- What you can do after
- Operate/configure a Next.js project by generating it with create-next-app and launching its development server.
Read how Build Financial Software with Generative AI (From Scratch) explains npx →
Also covered in
- Pro Angular 16
- React Quickly, Second Edition
- Build an AI Agent (From Scratch)
- Secrets of the JavaScript Ninja, Third EditionIn early access (MEAP)
- Hugging Face in Action
- React Hooks in Action: With Suspense and Concurrent Mode
- Automating API Delivery
What to know first
- node_modulesnode_modules is the conventional directory in a Node.js project where installed packages and their dependencies are stored.
- package.jsonpackage.json is the standard JSON manifest for an npm or Node.js package, declaring metadata, dependencies, scripts, entry points, and related configuration.
Related concepts
- Jestuses · Jest is a JavaScript testing framework for defining, running, and asserting automated tests.
- npmuses · npm is a package-management system for JavaScript that includes a command-line client and an online registry for discovering, installing, and publishing packages.
- packageuses · A software package is a named unit that groups related software components, either for organization and compilation or for distribution and reuse.
- MCP Filesystem serveruses · An MCP Filesystem server is a Model Context Protocol server that exposes filesystem operations, such as listing, reading, writing, and deleting files, to connected clients.
Questions about npx
What is npx?
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.
Which Manning books explain npx?
Bootstrapping Microservices, Second Edition: With Docker, Kubernetes, GitHub Actions, and Terraform and Build Financial Software with Generative AI (From Scratch).
What should I know before learning npx?
Manning books that teach npx usually introduce node_modules and package.json first.
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.

