node.js - Grunt.js: What does -save-dev mean in npm install grunt --save-dev -


i've started using grunt.js. pretty hard set , @ point of creating package.json file.

following tutorial, says there 3 ways create package.json file.

the first npm install grunt --save-dev

but --save-dev means? tried looking ends in vain.

--save-dev: package appear in devdependencies.

according npm install docs.

if planning on downloading , using module in program, don't want or need download , build external test or documentation framework use.

in other words, when run npm install, project's devdependencies installed, devdependencies packages app depends on not installed; further, other apps having app dependency need not install devdependencies. such modules should needed when developing app (eg grunt, mocha etc).

according package.json docs.

edit: attempt @ visualising npm install does:

  • yourproject
    • dependency installed
      • dependecy installed
        • dependecy installed
        • devdependency not installed
      • devdependency not installed
    • devdependency installed
      • dependecy installed
      • devdependency not installed

Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -