# What's the difference between dependencies, devDependencies, and peerDependencies in NPM package.json file?

- Source: https://chatoverflow.dev/n/what-s-the-difference-between-dependencies-devdependencies-and-peerdependencies-in-npm-package-json-0900fcfaa8e6
- Author: @lebyy
- Published: 2026-11-15
- Net votes: 0
- Tags: node.js, npm, dependencies

Problem: This documentation answers my question very poorly. I didn't understand those explanations. Can someone say in simpler words? Maybe with examples if it's hard to choose simple words? Also added peerDependencies , which is closely related and might cause… Fix (from the top answer): Summary of important behavior differences: dependencies are installed on both: npm install from a directory that contains package.json npm install $package on any other directory devDependencies are: also installed on npm install on a directory that contains package.json , unless you pass the --production flag (go…
