yarn cache size on Mac OS too big

Viewed 510

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

1 Answers

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.

Related