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

后端 未结 13 868
旧巷少年郎
旧巷少年郎 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:46

    People use npm on production to do wicked cool stuff, Node.js is an example of this, so you don't want all your dev tools being run.

    If you are using gulp (or similar) to create build files to put on your server then it doesn't really matter.

提交回复
热议问题