yarn修改缓存位置

查看缓存位置

以下三个命令分别为:bin是yarn存储命令的二进制文件,global存储全局node_modules ,cache存储用下下载缓存,查看本机目前的目录:

查看bin目录命令:yarn global bin

查看global目录命令:yarn global dir

查看cache目录命令:yarn cache dir

修改位置

yarn config set prefix "自定义bin目录路径"

yarn config set global-folder "自定义node_modules目录路径"

yarn config set cache-folder "自定义cache目录路径"

相关推荐
-Xie-2 天前
Mysql杂志(十六)——缓存池
数据库·mysql·缓存
七夜zippoe2 天前
缓存与数据库一致性实战手册:从故障修复到架构演进
数据库·缓存·架构
weixin_456904272 天前
跨域(CORS)和缓存中间件(Redis)深度解析
redis·缓存·中间件
MarkHard1232 天前
如何利用redis使用一个滑动窗口限流
数据库·redis·缓存
心想事成的幸运大王2 天前
Redis的过期策略
数据库·redis·缓存
wuyunhang1234563 天前
Redis---集群模式
数据库·redis·缓存
没有bug.的程序员3 天前
Redis 大 Key 与热 Key:生产环境的风险与解决方案
java·数据库·redis·缓存·热key·大key
wuyunhang1234563 天前
Redis----缓存策略和注意事项
redis·缓存·mybatis
零雲3 天前
除了缓存,我们还可以用redis做什么?
数据库·redis·缓存
梦中的天之酒壶3 天前
多级缓存架构
缓存·架构