We launched >200 aircraft carriers (of various types) between 1942-1945.
Right now it takes nine years to build one.
They run on nuclear power. WWII aircraft carriers were diesel-fueled.
So of course, it takes longer to build a modern aircraft carrier.