首页 > 其他 > 详细

yarn-cli 缓存

时间:2018-02-01 21:39:00      阅读:260      评论:0      收藏:0      [点我收藏+]
yarn cache list

Yarn 会在你的用户目录下开辟一块全局缓存用以保存下载的包。yarn cache list 用于列出所有已经缓存的包。

yarn cache dir

执行 yarn cache dir 命令会打印出当前的 yarn 全局缓存在哪里。

yarn cache clean

执行此命令将清除本地缓存。下次执行 yarn 或 yarn install 时将会重新填充缓存。

改变 yarn 的缓存路径

设置 cache-folder 的值用来改变缓存目录:

yarn config set cache-folder <path>

 

你还可以利用 --cache-folder 参数来指定缓存目录:

yarn <command> --cache-folder <path>

 

yarn-cli 缓存

原文:https://www.cnblogs.com/cisum/p/8401336.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!