Continued...
If we consider the amount of electricity needed to power a whole military base, which is effectively a small village, you need huge amounts of it. Lights (including high wattage flood-lights), computer equipment, sanitary equipment (laundry, etc.), cooking & heating (two massive energy consuming activities), etc.
You'd need batteries the size of a large house and acres of solar panels / wind turbines and even then you couldn't guarantee that the weather conditions will be in your favour. Not forgetting of course we're talking about military bases that are in hostile territory – so solar/wind farms which power these bases will be a prime target – just as the fuel convoys are now.
Nothing is solved by this venture. All you're doing is removing one problem by replacing it with another.