Quantcast
Channel: What's the difference between dependencies, devDependencies, and peerDependencies in NPM package.json file? - Stack Overflow
Viewing all articles
Browse latest Browse all 39

Answer by Amberlamps for What's the difference between dependencies, devDependencies and peerDependencies in npm package.json file?

$
0
0

There are some modules and packages only necessary for development, which are not needed in production. Like it says it in the documentation:

If someone is planning on downloading and using your module in their program, then they probably don't want or need to download and build the external test or documentation framework that you use. In this case, it's best to list these additional items in a devDependencies hash.


Viewing all articles
Browse latest Browse all 39

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>