Sunday, November 10, 2019

node.js - What is the difference between --save and --save-dev?



What is the difference between:




npm install [package_name] --save




and





npm install [package_name] --save-dev




What does this mean?


Answer




  • --save-dev is used to save the package for development purpose.
    Example: unit tests, minification..


  • --save is used to save the
    package required for the application to run.


No comments:

Post a Comment

hard drive - Leaving bad sectors in unformatted partition?

Laptop was acting really weird, and copy and seek times were really slow, so I decided to scan the hard drive surface. I have a couple hundr...