In small mixing bowl, whisk together the oil and egg. Stir in the shredded carrots, milk, and sugar. Mix in the flour, cinnamon, nutmeg, allspice, and pecans (if using).
Divide the batter between two (8-ounce) greased ramekins or mugs.
Microwave on high for 60 to 90 seconds, until done. Or, bake at 350°F for 12 to 15 minutes.
(Make frosting) Beat 3 tablespoons powdered sugar into 2 ounces softened cream cheese until smooth and creamy.
Allow cakes to cool slightly, then remove the cakes from the ramekins or mugs by turning them upside-down onto plates. Top with the cream cheese frosting.
Notes
Make sure to use a microwave-safe mug to avoid any accidents.Whisk the ingredients together thoroughly to ensure there are no lumps and everything is evenly distributed. But be careful not to over mix.Use fresh carrots and high-quality flour for the best flavor. You can also use organic ingredients if you prefer.The cooking time may vary depending on the power of your microwave. Start with a shorter cooking time, and then add more time in 10-15 second increments until the cake is fully cooked.Overcooking the cake can make it dry and tough. Stop cooking the cake when the top is set and a toothpick inserted into the center comes out clean.Allow the cake to cool for a few minutes before eating to prevent burning your mouth. Enjoy your delicious and easy carrot cake mug cake!Add your favorite toppings, such as cream cheese frosting, chopped nuts, or whipped cream, to enhance the flavor of the cake.