# Installing Packages — Node.js

Source: https://www.geekswithgeeks.com/en/nodejs/node-npm-install

> npm install, dependency types, and the lockfile.

## npm install

Add a runtime dependency, a dev-only tool, or install everything from an existing `package.json`.

```bash
npm install express          # runtime dependency
npm install -D nodemon       # devDependency
npm install                  # install everything from package.json
```

## node_modules & the lockfile

Packages land in `node_modules/`. `package-lock.json` pins exact versions so every install is reproducible — commit it.
