The other reason why electric cars aren't taking off is that there are enormous national energy supply issues, and it's still fairly questionable whether they're even environmentally beneficial.
Their one direct benefit is that they shift localised pollution out of cities, and that they are another way of buying carbon allowances (a la the paris agreement), as you can import electricity that's relatively dirty.
Whether or not it is more ecological to generate electricity, likely store, transmit, and then utilise in charging cycles of rare earth metal batteries is variable, and depends on quite a few things.
For one, it depends on composition of national energy supply and grid optimisation. If your losses are low, there is little need to store the energy, and your sources are partially or predominantly renewable, fueling electric cars is likely less polluting that running on petrol. However, the countries for which the above is true are few, Scandinavia is one of the only cases where rigorous analysis shows electric cars are ecologically positive. The UK potentially, due to very high grid efficiency (it's not on the pan-Europe grid, which has many issues), yet even for Germany it seems at present unlikely to pollute less to use an electric car - it does pollute elsewhere though. Ofc, in China, India, etc. it pollutes more due to their reliance on dirty and inefficient energy generation.
Lastly, you have the embedded carbon, it is much more polluting to make an electric car than a normal one, and the lifespan is questionable, so it's not necessarily the case that this energy investment events out over a long time span.
Thus, the intuitive position of electric = green isn't unlike the old one of diesel = green + economy.
Lastly, no national or international grids are yet able to cope with the electricity demands associated with even moderate uptake of electrical vehicles. /offtopic