This could have all been avoided by putting a PLA base in Venezuela.
That's not the way it works.
A PLA base in Venezuela would mean nothing unless the PRC was willing to go to war over Venezuela. Otherwise what happens at best is that any notional PLA base just gets bypassed, or they offer a token resistance, and neutralized, and it is in the PRC court as to whether they want to escalate.
It's a shame that nobody is stepping up to fight America. China gave Venezuela billions in loans for oil, not sure if much of that has been repaid.
Again, that's not the way any of this works. The US resolve and capability to mess with Venezuela is many times greater than the PRC interest and capability to actually defend Venezuela.
Basic geopolitics.
The side with greater function of "resolve x capability" will ultimately prevail. It is when both sides have (or believe they have) similar "resolve x capability" is when things get dicey and you see conflict.