Lesson 8 / 28
Installing Packages
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.
npm install express # runtime dependency
npm install -D nodemon # devDependency
npm install # install everything from package.jsonnode_modules & the lockfile
Packages land in node_modules/. package-lock.json pins exact versions so every install is reproducible — commit it.