01 - Preheat the oven to 350°F. Line an 8x8-inch baking pan with parchment paper, allowing overhang for easy removal.
02 - In a medium bowl, whisk together flour, baking powder, baking soda, salt, cinnamon, and nutmeg until evenly blended.
03 - In a large bowl, whisk brown sugar, granulated sugar, eggs, oil, and vanilla until smooth and well combined.
04 - Fold grated carrots, drained pineapple, and nuts into the wet mixture until evenly distributed.
05 - Add dry ingredients to the wet mixture; stir until just combined. Do not overmix. Set aside.
06 - In a separate bowl, beat softened cream cheese until smooth. Add sugar, egg, and vanilla; blend until creamy and lump-free.
07 - Spread 2/3 of the carrot cake batter into the prepared pan. Pour cream cheese mixture evenly over the top. Dollop remaining carrot cake batter over cream cheese layer.
08 - Use a knife or skewer to gently swirl the batters together for a marbled effect, being careful not to overmix.
09 - Bake for 38 to 42 minutes, or until a toothpick inserted in the center comes out mostly clean.
10 - Cool completely in the pan. Refrigerate for 2 hours for easier slicing. Cut into bars and serve.