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目录路径"

相关推荐
姜鱼问生13 小时前
Nginx 缓存命中率监控:从 X-Cache-Status 到实时统计
运维·nginx·缓存
weixin1997010801620 小时前
《1688图片空间API踩坑:img.upload 与 album.* 的防盗链与CDN缓存问题》(附Python源码)
开发语言·python·缓存
hweiyu0020 小时前
Redis命令:BLPOP
redis·缓存
小小龙学IT1 天前
C++ Redis 客户端深度解析(hiredis 与 redis-plus-plus)——工业数采实时缓存 C++ 侧实战
c++·redis·缓存
mengge.cloud1 天前
Redis
运维·服务器·数据库·redis·缓存·云计算
欣栀♡1 天前
Redis 缓存穿透、击穿、雪崩,背出定义只是及格线
数据库·redis·缓存
禾小西1 天前
08丨Redis 哨兵集群:哨兵故障后还能完成切换吗?
数据库·redis·缓存
阿标在干嘛1 天前
缓存架构的“场景适配“:我们为什么在部分服务中采用了本地缓存?
缓存·架构
需要8261 天前
缓存与数据库一致性:延迟双删与订阅 binlog 的取舍
数据库·缓存
CV工程师丁Sir1 天前
ArkWeb 手记 04|DevTools 调试与缓存清理
java·spring·缓存·harmonyos