My comment applies in general, but yeah node/npm is particularly shit in this regard.
I wonder if the node community will ever revert on the terrible idea that single functions should be separate packages.
I bet moving away from that model would make node dependencies much more sustainable.
I hate it, but this is what we have made it. I hope that we aren't getting riddled with backdoors and keyloggers and miners, but I wouldn't want to lay money against it.