怎样快速删除项目中多余的npm包


1.

npm install depcheck -g
或者
yarn global add depcheck

2.项目根目录运行

depcheck

3.查看结果