01 -
Preheat your oven to 350°F (175°C) and line a muffin tin with paper liners.
02 -
In a large mixing bowl, combine the flour, sugar, baking soda, salt, cinnamon, and nutmeg. Whisk thoroughly.
03 -
In another bowl, beat the eggs until fluffy, then mix in the vegetable oil and vanilla extract until fully combined.
04 -
Pour the wet mixture into the dry ingredients, stirring gently until just mixed. Avoid over-mixing.
05 -
Fold in the grated carrots, crushed pineapple, and if desired, chopped walnuts and shredded coconut.
06 -
Evenly divide the batter among the muffin cups, filling each about two-thirds full.
07 -
Bake for 20-25 minutes, checking for doneness with a toothpick. It should come out clean when inserted into the center.
08 -
Remove the muffins from the oven and let them cool in the tin for 5 minutes. Transfer to a wire rack to cool completely.
09 -
In a bowl, beat the softened cream cheese until smooth. Gradually mix in powdered sugar and vanilla extract until fluffy.
10 -
Pipe or spread the cream cheese frosting onto each cooled muffin and garnish with a small chunk of pineapple.