That's one reason why I think the boom in cheaper, better, safer battery tech is one of the greatest innovations of the 21st century.
Yeah, the sun doesn't always shine. Yeah, you need 24/7 power for a lot of things (eg lifesaving medical equipment in hospitals). Solar isn't practical for a lot of uses unless you can effectively store the power. But battery storage centers are getting better every day.
(On a related note, e-bikes and scooters are everywhere where I live. Personal solar powered transportation at a fraction of the cost and impact of cars. As soon as batteries got small and light and cheap enough to make them practical the market exploded. It's amazing.)