npm --save参数说明

  npm 5.0+ 版本在默认情况下会将安装的模块添加到 package.json 文件中的 dependencies 列表中。
对于较老的 npm 版本,你就必须指定 --save 参数。

新版本下 npm install lodash <==> npm install --save lodash

原文地址:https://www.cnblogs.com/uakora/p/13604656.html