December 14, 201510 yr Hey guys, I am doing some reading on --save and --save-dev because I want to gain more understanding about the topic but I feel like all the explanations are missing more examples to differentiate the two meanings. For example: Testing modules to use --save-dev and production module to be --save. I felt like this would be a good topic to discuss with people about to gain a better understanding about it? I have read these stack overflow questions and this blog but I still cant get my head 100% around it. http://stackoverflow.com/questions/19223051/grunt-js-what-does-save-dev-mean-in-npm-install-grunt-save-dev http://stackoverflow.com/questions/19578796/what-is-the-save-option-for-npm-install http://scottksmith.com/blog/2014/06/25/8-npm-tips-for-better-node-development/
December 14, 201510 yr --save is for modules that are used for the app itself, like React, Jquery, Express stuff like that. --save-dev is for modules that are used only during development - stuff for gulp, testing things like mocha, chai and so forth.
Create an account or sign in to comment