01 - Preheat oven to 350°F. Line a 12-cup muffin tin with paper liners.
02 - In a medium bowl, whisk together flour, ground ginger, cinnamon, cloves, nutmeg, baking soda, baking powder, and salt until evenly mixed.
03 - In a large bowl, beat softened butter and brown sugar until light and fluffy, approximately 2 minutes.
04 - Add molasses, egg, and vanilla extract to the butter mixture, beating until fully combined.
05 - Add half of the dry ingredients to the wet mixture, then pour in the milk. Beat gently before folding in the remaining dry ingredients until just combined to avoid overmixing.
06 - Divide batter evenly among liners, filling each about two-thirds full.
07 - Bake in preheated oven for 18 to 20 minutes, or until a toothpick inserted in the center comes out clean.
08 - Allow cupcakes to cool in the pan for 5 minutes, then transfer to a wire rack to cool completely.
09 - Beat cream cheese and butter until smooth. Gradually add powdered sugar and vanilla extract, beating until fluffy. Adjust consistency with milk as needed for spreading.
10 - Once completely cooled, frost cupcakes generously. Decorate optionally with sprinkles or a dusting of cinnamon.