npm
The package manager that comes with Node.js, plus the public registry where JavaScript packages are published.
In more detail
npm install reads package.json and downloads the listed dependencies into node_modules. A package is a folder with a package.json that describes it, and packages can be published under a scope such as @company/design. The name originally stood for Node Package Manager.
Example
npm install server-only zodRelated terms
- package.json — The JSON file at the root of every JavaScript package that records its name, version, dependencies, entry points and other settings.
- semantic versioning — A version numbering scheme of three numbers, major.minor.patch, raised for breaking changes, new features and fixes respectively.
- exports field — The package.json field that lists exactly which files a package exposes, by path such as "." or "./button", and which file to use in each situation.
- pnpm — A fast JavaScript package manager that stores each package version once on disk and has strong built-in support for workspaces.
- Bun — A fast all-in-one JavaScript toolkit: a runtime that runs JavaScript and TypeScript directly, plus a package manager and test runner.
- Node.js — A program that runs JavaScript outside the web browser, used mainly to build servers, command-line tools and back-end services.
- lockfile — A file that records the exact version of every dependency, including transitive ones, so every install gets the same set.
- node_modules — The folder where npm installs a project's packages and all their dependencies.
- dependency — Anything a program needs in order to work, such as a library, a tool or another service.
- third-party package — Code written by someone other than you or the Node.js project, usually installed from the npm registry.
- DefinitelyTyped — The community repository of type declarations for JavaScript packages, published to npm as @types/package-name.
- bunx — Bun's command for running a tool from an npm package without installing it globally, like npx.
Taught in
- CodeBuild: The Build That Passed With Failing Tests — AWS Certified DevOps Engineer – Professional (DOP-C02) Exam Prep
- Artifacts: Where Packages And Images Live, And Die — AWS Certified DevOps Engineer – Professional (DOP-C02) Exam Prep
- Package Feeds, Views And Upstream Sources — Microsoft Azure DevOps Engineer Expert (AZ-400) Exam Prep
- Component Packaging: Dual ESM/CJS Builds & Package Exports — Design Systems & Component Engineering
- System Governance: Changesets, Semantic Versioning & Deprecation — Design Systems & Component Engineering
- Monorepo Architecture: Workspaces & Turborepo — Production Full-Stack Engineering
- The Workflow That Ran On A Stranger's Pull Request — GitHub Actions (GH-200) Exam Prep
- Matrices, Needs And Concurrency: The Shape Of A Run — GitHub Actions (GH-200) Exam Prep
- Reusable Workflows: Inputs, Secrets And Outputs Across A Call — GitHub Actions (GH-200) Exam Prep
- Outputs, Artifacts, Caches And Job Summaries — GitHub Actions (GH-200) Exam Prep
- action.yml: Inputs, Outputs, Runs And Branding — GitHub Actions (GH-200) Exam Prep
- Building And Debugging A JavaScript Action — GitHub Actions (GH-200) Exam Prep
- GITHUB_TOKEN: Least Privilege, Job By Job — GitHub Actions (GH-200) Exam Prep
- OIDC: Cloud Access Without Stored Keys — GitHub Actions (GH-200) Exam Prep
- The Container Registry: Build, Tag, Push, Clean Up — GitLab Certified CI/CD Associate Exam Prep
- Package Registries: Publishing With The Job Token — GitLab Certified CI/CD Associate Exam Prep
- Serialization Boundaries: Props & Server Guardrails — Next.js 15 & Modern App Router Architecture
- Runtime Environments: Node.js vs Edge Runtime Choice — Next.js 15 & Modern App Router Architecture
- Runtime Configuration: CLI Flags & Native --env-file — Node.js Internals & Backend Services
- Declaration Files, Ambient Namespaces And Module Augmentation — Production TypeScript
- Images Sprint: Eight Questions On Builds, Tags And Registries — Docker Certified Associate (DCA) Exam Prep
- The Upgrade That Broke Nginx: Packages, Repositories And Pins On Both Families — CompTIA Linux+ (XK0-006) Exam Prep
- When awk Runs Out: Python Data Types, Modules And Virtual Environments For Admins — CompTIA Linux+ (XK0-006) Exam Prep
References
Certification courses
- AWS DevOps Engineer Professional course and practice exam: DOP-C02
- AZ-400 course and practice exam: Microsoft Azure DevOps Engineer Expert
- GH-200 course and practice exam: GitHub Actions
- GitLab CI/CD Associate course and practice exam: GitLab Certified CI/CD Associate
- DCA course and practice exam: Docker Certified Associate
- CompTIA Linux+ course and practice exam: XK0-006