Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

node.js

npm

I saw this here

npm install grunt-bower-task --save-dev

What does --save-dev do? Is this the same as doing without it?

like image 451
dangdis Avatar asked Jul 14 '14 15:07

dangdis


1 Answers

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?

like image 192
tier1 Avatar answered Nov 03 '22 09:11

tier1