QNM
查询node_module使用情况的库
- 安装
pnpm i -g shell- 分析依赖
qnm <module>- 分析空间占用
//在需要分析的node_module的父级目录上
qnm doctor- 查看重复依赖占用的空间
qnm doctor --sort duplicates- 分析所有模块
qnm list- 模糊匹配
qnm match <module>查询node_module使用情况的库
pnpm i -g shellqnm <module>//在需要分析的node_module的父级目录上
qnm doctorqnm doctor --sort duplicatesqnm listqnm match <module>同一 IP 全站 12 小时内只计一次