Rust is on this path as well, the small standard library pretty much forces people into using a ton of tiny dependencies. Compiling a rust project is exactly like using npm and seeing a never ending list of deps
Another problem with npm: every package gets its own copy of its dependencies. Not sure if Rust does that.
It does something halfway in between, which is still a security liability.