We cannot put all these packages in distro package managers. Especially because we need every version of all of these packages because so many libraries in these languages don't properly follow SEMVER so we can't just say "oh, 1.0 of this nodejs-widget should be compatible with all these things" -- because it's not. They all need the specific versions of the packages that they were pinned to or you're asking for a free vacation to the 9 circles of hell
There once was a plan to extend the FreeBSD pkg manager to directly integrate with Rubygems, Pypi, CPAN, NPM, etc so it would just be automagic and there would be a single source of truth everything -- pkg itself.
I wasn't directly involved in that so I'm not sure what happened. I still wish it had that capability, but you're just inheriting the security problems of those other tools.