People also ask, what is devDependencies in package json?
Dev Dependencies: In package. json file, there is an object called as devDependencies and it consists of all the packages that are used in the project in its development phase and not in the production or testing environment with its version number.
Also, what is difference between devDependencies and dependencies in package json? The difference between these two, is that devDependencies are modules which are only required during development, while dependencies are modules which are also required at runtime. To save a dependency as a devDependency on installation we need to do an npm install --save-dev , instead of just an npm install --save.
Hereof, what is the use of devDependencies?
devDependencies should contain packages which are used during development or which are used to build your bundle, for example, mocha, jscs, grunt-contrib-watch, gulp-jade and etc.
What are dependencies in json?
json is where dependencies - the other modules that this module uses - are defined. The dependencies property takes an object that has the name and version at which each dependency should be used. Tying things back to the version property defined earlier, the version that a module needs is defined.
