Note that Japan attacked Pearl Harbor bringing the US into WW2 because the US cut off their oil supply. And note that Germany invaded the Soviet Union in order to ensure a supply of oil. Successfully blocking Germany's oil access was a crucial factor in winning WW2. Britain would have sank in WW2 if not for US shipments of gas to it.
Without gas, your military is kaput.
https://www.politico.com/news/2021/05/04/biden-electric-vehi...
We'd run out of lithium way before they even dented gas demand.
If you factor in electricity generation from fossil fuels, in addition the lithium mining, your EV is hardly going to save the planet.