node_modules
The folder where npm installs a project's packages and all their dependencies.
In more detail
It is often hundreds of megabytes and should never be committed to version control. The lockfile lets anyone recreate it exactly.
Example
The Next.js standalone output copies only the traced files from node_modules.Related terms
- npm — The package manager that comes with Node.js, plus the public registry where JavaScript packages are published.
- standalone output — A next.config setting that makes next build produce a self-contained folder with a minimal server.js and only the node_modules files it needs.
- package.json — The JSON file at the root of every JavaScript package that records its name, version, dependencies, entry points and other settings.
Taught in
- Runtime Environments: Node.js vs Edge Runtime Choice — Next.js 15 & Modern App Router Architecture
- Containerized Deployment: Multi-Stage Docker Builds — Next.js 15 & Modern App Router Architecture