If anything, this is the reason you use pull-through proxies. Your proxy will hold the version you depend on, regardless of upstream drama. Keep your proxy backed up and you'll be able to use those dependencies until the end of time, or you finally decide to migrate to an alternative.
If your package system allows this switch to another one, like, right now.
NPM, Cargo, etc. don't allow this (they "unlist" versions, but they don't "remove" them, i.e. you can't search for them, but they are still there).
I'd say the likelihood is about 50% you have a NPM package in your dependencies right now that pulls some binary or whatever from a random S3 bucket during installation.
And that's among the reasons people have started to commit their node_modules folders.
It has the neat side-effect of making people take a closer look at all the crap their pulling in too.
NPM no longer allows this.
The biggest churn in package-lock.json files is from using different npm versions. It’s worth keeping them aligned within a dev team.
save-exact = true
package-lock = false
update-notifier = falsePinning all dependencies to this extent is extremely inconvenient. More inconvenient, arguably, than to deal with this shit once in a while...
And even if all of that works, you still run head first into the issue once you inevitably upgrade the dependencies.
Dependencies change. Dependencies of dependencies change. You can't not update any of your dependencies for too long or there will be other problems. Something is gotta give.
You do that. Your coworkers don't. And they'll complain to your boss if you try to make them.
If your boss doesn't take your side, at least you can say "I told you" when things go wrong.
And their PRs aren't merged until they do, because we'd have talked about it before hand and achieved consent around the idea that pinning dependencies is a practice our team will start doing, or some other specific practice that solves this problem.
Really? Have I led a sheltered life? I cannot rightly apprehend the state of mind that would see pinning deps as bad. It only helps you!