npm查看安装的包列表 发表于 2019-01-09 | 分类于 前端 , npm 查看全局安装的包1234567891011# depth 目录层级 0顶级LivferMBP:blog Livfer$ npm ls -g --depth=0/usr/local/lib├── apidoc@0.17.7├── cnpm@4.3.1├── express-generator@4.13.4├── gulp@3.9.1 -> /usr/local/lib/node_modules/.gulp_npminstall/node_modules/.3.9.1@gulp├── gulp-cli@1.2.2├── hexo@3.8.0├── node-gyp@3.8.0└── npm@6.5.0 查看当前目录下安装的包12345678910111213# depth 目录层级 0顶级LivferMBP:blog Livfer$ npm ls --depth=0hexo-site@0.0.0 /Users/Livfer/Desktop/GitHub/blog├── hexo@3.8.0├── hexo-deployer-git@0.3.1├── hexo-generator-archive@0.1.5├── hexo-generator-category@0.1.3├── hexo-generator-index@0.2.1├── hexo-generator-tag@0.2.0├── hexo-renderer-ejs@0.3.1├── hexo-renderer-marked@0.3.2├── hexo-renderer-stylus@0.3.3└── hexo-server@0.3.3