下载 TreeSize
软件,文件夹大小一目了然
清理yarn 缓存 清理npm 缓存
yarn cache clean
设置缓存目录
yarn config set cache-folder G:\YarnCache
npm 清理缓存
npm config get cache
npm cache clean --force
npm config set cache "D:\ProgramFile\nodejs\node_modules\node_cache"
npm cache verify:验证清理的有效性
原文地址 https://xiaofeihe1993.github.io/2019/05/11/yarn-cache/ https://segmentfault.com/a/1190000019558630