This solution, for all its problems, has the advantage that it can be imposed on unwilling countries. Short of coercion tantamount to war, you can't make the unwilling stop burning fossil fuels and use non-fossil alternatives instead.
Nuclear also isn't the best solution in any case, for multiple reasons that have been explained here over and over.