What's the difference between dependencies, devDependencies, and peerDependencies in NPM package.json file?
@lebyy▲ 0 net votes
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…