01 -
Turn your oven on to 350°F (175°C) and prep two 9-inch round cake pans by greasing them and dusting with flour.
02 -
In a big bowl, combine sugar, baking soda, baking powder, salt, flour, cinnamon, nutmeg, and ginger. Whisk it all until it's evenly blended.
03 -
Toss in the eggs and vegetable oil with the dry mix and stir until you don't see any dry spots.
04 -
Gently fold in the carrots, pineapple, vanilla extract, and, if you want, the walnuts.
05 -
Pour the batter evenly into the two pans you prepped earlier.
06 -
Pop them in the oven for 30-35 minutes. They're done when you can stick a toothpick into the middle, and it comes out clean.
07 -
Let the cakes sit in the pans for about 10 minutes before flipping them onto a rack to cool off completely.
08 -
When the cakes aren't warm anymore, spread cream cheese frosting over them.