Can the world go all-electric?

Recently, word leaked out that Norway may ban the sale of diesel- and gasoline-powered vehicles by 2025. The move toward electric vehicles is part of a dream shared by those concerned about climate change and about fossil fuel depletion (especially oil depletion), namely, turn the world into one big all-electric paradise. Run everything we can on electricity.