The electric car is environmentally friendly but can not yet replace the oil car I guess if the oil has begun to run out some electric cars will become popular and in mass production.
On average an electric car is around 8 to 10 times more expensive when compared to the equivalent gasoline-driven car. As long as it remains unaffordable to the majority of the world population, electric cars can't expect to replace those run with gasoline and diesel oil. Another factor is the unavailability of Lithium, which is needed for making the batteries of electric cars.