Over the past two years the economics of renewables have been hit by rising interest rates, supply-chain snags, permitting delays and, increasingly, the protectionist instincts of Western governments.