//安装依赖 npm i -g depcheck //检查依赖命令 depcheck
在项目根目录新建一个忽略文件
.depcheckrc
忽略依赖
ignores: ["@babel/core",""]