Search code examples
yarnpkg

How to clear cache in Yarn?


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

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


Solution

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

    yarn cache clean