Ingredients
Method
- Preheat oven to 350°F (175°C). Line a cupcake pan with cupcake liners.
- In a medium bowl, whisk together flour, baking powder, baking soda, salt, cinnamon, nutmeg, and ginger.
- In a large bowl, beat together granulated sugar, brown sugar, and vegetable oil. Add the eggs one at a time, beating well after each addition.
- Gradually mix in the dry ingredients until just combined.
- Fold in the grated carrots, crushed pineapple, walnuts (if using), and vanilla extract.
- Spoon the batter into the prepared cupcake liners, filling each about 2/3 full.
- Bake in the preheated oven for 18-20 minutes, or until a toothpick inserted into the center comes out clean.
- Allow cupcakes to cool in the pan for 5 minutes, then transfer to a wire rack to cool completely.
For the Cream Cheese Frosting:
- In a medium bowl, beat the cream cheese and butter together until smooth and creamy.
- Gradually add the powdered sugar, beating until smooth.
- Add the vanilla extract and mix until combined.
- Frost the cooled cupcakes with the cream cheese frosting.
Notes
- Ensure carrots are finely grated for a smooth texture.
- Draining the crushed pineapple well prevents excess moisture in the batter.
- Toast walnuts before adding for extra flavor.
- Cupcakes should be completely cooled before frosting to avoid melting the frosting.