What does the --save-dev option mean in npm install?

node.js, npm

Solution

The --save option will save the package as well as the version to your packages.json file.

The --save-dev option will save the package under devDependencies which is useful when installing only development packages that you may not want to ship in production.

--Edit

Just found this. Possible duplicate: What is the --save option for npm install?

Problem

I saw this here ``` npm install grunt-bower-task --save-dev ``` What does --save-dev do? Is this the same as doing without it?

Original source

Related problems