I think a way to do is to reduce how many dependencies are needed.
It doesn’t matter whether it is Wordpress, Python, Nodejs, PHP, to name a few.
I understand that updates are necessary but we need to change the way we do them.
If I had a solution, I would post it here…