本文介绍了如何清除Yarn中的缓存?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在对Facebook的纱线进行一些基准测试。为此,我需要清除全局Yarn缓存。

I am doing some benchmark tests for Facebook's Yarn. For this, I need to clear my global Yarn cache.

是否有可用的命令?我已经强行删除了我的〜/ .yarn-cache 文件夹,但这似乎很手动。

Is there a command available for this? I have force-removed my ~/.yarn-cache folder, but this seems to be quite manual.

推荐答案

好,我自己找到了答案。就像 npm cache clean 一样,Yarn也有自己的

Ok I found out the answer myself. Much like npm cache clean, Yarn also has its own

yarn cache clean

这篇关于如何清除Yarn中的缓存?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-22 09:12
查看更多