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 cherankrish for What's the difference between dependencies, devDependencies, and peerDependencies in NPM package.json file?

$
0
0

In short

  1. Dependencies - npm install <package> --save-prod installs packages required by your application in production environment.

  2. DevDependencies - npm install <package> --save-dev installs packages required only for local development and testing

  3. Just typing npm install installs all packages mentioned in thepackage.json

so if you are working on your local computer just type npm install and continue :)


Viewing all articles
Browse latest Browse all 39

Trending Articles



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