码迷,mamicode.com
首页 > 其他好文 > 详细

yarn-cli 缓存

时间:2018-02-01 22:03:47      阅读:130      评论:0      收藏:0      [点我收藏+]

标签:command   --   log   clean   用户   http   利用   install   nbsp   

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 缓存

标签:command   --   log   clean   用户   http   利用   install   nbsp   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!