Apperside
Apperside

Reputation: 3602

yarn cache size on Mac OS too big

I just used Clean My Mac's space lens feature to understand what was eating my disk space and I found this under ~/Libary/Caches

enter image description here

Even with the biggest imagination, I can't think at a reason for that folder being so big, is it possible to safely (and periodically) delete this folder?

Thank you

Upvotes: 5

Views: 2744

Answers (1)

jnpdx
jnpdx

Reputation: 52367

Yes, you can delete that directory (or run yarn cache clean -- see How to clear cache in Yarn?).

Yarn, by default caches the packages it downloads (including different versions). If you delete this cache, the main side-effect that you'll see is it may take longer to run a yarn install because it will need to fetch the necessary packages again.

Upvotes: 11

Related Questions