I was recently poking around concerning solar myself, and the problem is that it is not cheap to make the panels. Oh, they are easier to make than semiconductor CHIPS, but they are still not cheap, and they do wear out over time, meaning that there is a continual cost of maintaining an already expensive physical structure.
So that's why that is not working out as hoped.
The hard truth concerning fossil fuels is they represent millions of years of stored energy, they are relatively easy to get at, and if we do not use them other countries will. So this idea that we should artificially make them expensive in order to drive energy innovation is basically self destructive.
If fossil fuels are as bad for the environment as the left says, then we really have almost no choice but to go to war with China and then suffocate the developing world. I somehow doubt that is the appropriate way forward. I suspect the real issue is that the rich in America and Europe are going to have to start sacrificing a lot of their affluence in order to share clean energy with the rest of the world and help build the worldwide energy infrastructure. Places like China and India also need help with other industries as their agricultural practices are part of what make them such horrific places for the environment compared to western countries.
The more you look, the more it seems unrestrained wealth accumulation in the hands of a tiny western minority has led to mismanagement of worldwide resources. When western working class folks finally snap to that, hopefully sooner than later, we can begin the somewhat daunting task of determining in what manner to also lift the working men and women of the so called "third world" out of the cesspool our leaders have made out of their lands.