在使用npm时,使用的的缩写
install:
缩写为i,表示安装。
--global:
缩写为-g,表示:全局标识,可以在任意目录中使用该工具。全局安装。
--save:
缩写为-S,表示安装的包将写入package.json里面的dependencies。
--save-dev:
缩写为-D,表示将安装的包将写入packege.json里面的devDependencies。
--save-optional:
缩写为-O,表示将安装的包将写入packege.json里面的optionalDependencies。
--save-exact:
缩写为-E,表示安装的包的版本是精确指定的。
--save-bundle:
缩写为-B,表示将安装的包将写入packege.json里面的bundleDependencies。
原文:https://www.cnblogs.com/CandyTT/p/13973966.html