Prep your ingredients by washing and peeling the carrots, then finely grating them.
Mix the dry ingredients: whisk together the gluten-free flour, baking powder, baking soda, cinnamon, nutmeg, and salt.
Combine the wet ingredients: mix the grated carrots, sugars, oil, eggs, and vanilla until smooth.
Gradually add the dry mixture to the wet mixture, stirring gently, then fold in the pineapple and walnuts.
Preheat the oven to 350°F. Divide the batter between two prepared 9-inch round cake pans and bake for 25-30 minutes.
Prepare the cream cheese frosting by beating the cream cheese and butter until smooth, then add powdered sugar and vanilla.
Once the cakes are cool, frost the top of one layer, place the second layer on top, and frost the top and sides.