There is currently no method exposed through npm to inspect or directly manage the contents of this cache. In order to access it, cacache must be used directly. npm will not remove data by itself: the cache will grow as new packages are installed.

One may also ask, what is yarn cache? Yarn stores every package in a global cache in your user directory on the file system. yarn cache list will print out every cached package. yarn cache list --pattern <pattern> will print out every cached package that matches the pattern provided.

Likewise, how long does yarn cache clean take?

is unbelievely slow. In other CI systems it takes about 4-5 seconds.

What does yarn clean do?

The autoclean command frees up space by removing unnecessary files and folders from dependencies. It reduces the number of files in your projects node_modules folder which is useful in an environment where packages are checked into version control directly.