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

Taught in

References