npm --save参数说明

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

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

posted @ 2020-09-02 21:46  LucasLin  阅读(1907)  评论(0编辑  收藏  举报