01 -
Preheat your oven to 350°F (175°C). Grease and flour two 9-inch round cake pans.
02 -
In a large bowl, whisk together the flour, sugar, baking powder, baking soda, salt, cinnamon, nutmeg, and ginger.
03 -
Add the vegetable oil and eggs to the dry ingredients, and mix until well combined.
04 -
Stir in the grated carrots, crushed pineapple, vanilla extract, and chopped walnuts (if using).
05 -
Evenly distribute the batter between the prepared cake pans.
06 -
Place in the oven and bake for 30-35 minutes, or until a toothpick inserted into the center of the cakes comes out clean.
07 -
Let the cakes cool in the pans for 10 minutes, then turn them out onto a wire rack to cool completely.
08 -
Once the cakes are cool, frost them with cream cheese frosting.