It's time for someone to make a Redhat, but for "safe" open source software libraries. My big enterprise would sign up for it in a heartbeat. We'd pay for access from an alternative NPM registry where everything is at least semi-vetted - someone at least looks at diffs before new versions get updated and made available. Sure, the "safe" repo wouldn't have as nearly as many packages as the main NPM repo, but if it had…
Use a language where you don't need to pull in 100 dependencies to create a useful application/service.
Last I checked create-react-app pulls around 1k transitive dependencies. Can't really blame JS for that, can we?