What is the difference between --save and --save-dev?

What is the difference between --save and --save-dev?

What is the difference between:

npm install [package_name]

and:

npm install [package_name] --save

and:

npm install [package_name] --save-dev

What does this mean? And what is really the effect of --save and -dev keywords?

原文地址:https://www.cnblogs.com/chucklu/p/14311172.html