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 si
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.
In short
Dependencies - npm install <package> --save-prod
installs packages required by your application in production environment.
DevDependencies - npm install <package> --save-dev
installs
packages required only for local development and testing
Just typing npm install
installs all packages mentioned in the
package.json
so if you are working on your local computer just type npm install
and continue :)