I'm surprised this is getting downvoted. This is the only sane way to manage dependencies. They must be relative to the thing you care about.
There are tradeoffs for sure, like the ridiculous sizes of those directories on development machines. But a giant SSD is cheaper than my time resolving dependency issues on user machines.