01 - Preheat oven to 350°F. Grease and line two 8-inch round cake pans with parchment paper.
02 - In a medium bowl, whisk together flour, baking powder, baking soda, cinnamon, nutmeg, ginger, and salt until well blended.
03 - In a large bowl, whisk granulated sugar, brown sugar, oil, eggs, and vanilla extract until smooth and fully incorporated.
04 - Gradually add dry ingredients to wet ingredients, mixing gently with a spatula just until combined. Do not overmix.
05 - Fold in grated carrots and chopped walnuts until evenly distributed throughout the batter.
06 - Divide batter evenly between prepared pans. Smooth the tops with a spatula for even baking.
07 - Bake for 35–40 minutes, or until a wooden toothpick inserted in the center comes out clean.
08 - Let cakes cool in pans for 10 minutes, then carefully turn out onto a wire rack to cool completely before frosting.
09 - Beat cream cheese and butter together until creamy and smooth. Add powdered sugar, vanilla extract, and salt; beat until light and fluffy.
10 - Once cakes are completely cool, spread a layer of frosting on one cake layer, top with the second layer, then frost the top and sides evenly.
11 - Sprinkle additional chopped walnuts over the top if desired for garnish.