CTAN has a central server. CPAN has a master site. What you're proposing has exactly the same deficiency as the npm repository: it is centralized and thus vulnerable to takedown notices, "right to be forgotten", author deletion and similar shenanigans.
IPFS is distributed and has no such single point of failure (SPOF).