Blog icon indicating copy to clipboard operation
Blog copied to clipboard

记录:NPM查看本地全局安装包

Open idseventeen opened this issue 5 years ago • 0 comments

npm list -g --depth 0

解释一下

npm list显示安装过的包

命令 解释
g 指全局安装过的包
depth 限制输出模块层级,后跟层数

idseventeen avatar Jun 05 '19 05:06 idseventeen