Python|Golang|JavaScript 清理缓存

Python,Go,npm 等编程语言清理缓存的命令汇总

各编程语言清理缓存的命令汇总

Python

1
2
3
4
5
6
7
pip cache dir  # 查看 pip 缓存目录
pip cache purge

conda clean --all # 清理 conda 缓存

uv cache clean
uv cache purge

Go

1
2
3
go clean -cache
go clean -modcache
go clean -testcache

Node.js (npm)

1
npm cache clean  # 清理 npm 缓存,如有必要可加上 --force 参数 
Licensed under CC BY-NC-SA 4.0
使用 Hugo 构建
主题 StackJimmy 设计