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

后端 未结 13 829
旧巷少年郎
旧巷少年郎 2020-11-28 00:02

What is the difference between:

npm install [package_name]

and:

npm install [package_name] --save

and:

13条回答
  •  醉梦人生
    2020-11-28 00:29

    • --save-dev is used to save the package for development purpose. Example: unit tests, minification..
    • --save is used to save the package required for the application to run.

提交回复
热议问题