01 -  Preheat oven to 350°F (175°C). Line a 12-cup muffin tin with cupcake liners. 
 02 -  In a medium bowl, whisk together flour, baking powder, baking soda, salt, cinnamon, nutmeg, ginger, and cloves. 
 03 -  In a large bowl, beat together brown sugar, granulated sugar, and oil until smooth. Add eggs, pumpkin purée, and vanilla; mix until fully combined. 
 04 -  Gradually add the dry ingredients into the wet ingredients and stir just until combined. 
 05 -  Divide the batter evenly among the cupcake liners, filling each about 2/3 full. 
 06 -  Bake for 18–20 minutes, or until a toothpick inserted into the center comes out clean. 
 07 -  Let cupcakes cool completely before frosting. 
 08 -  Beat cream cheese and butter together until creamy. 
 09 -  Gradually add powdered sugar, beating until smooth. 
 10 -  Add vanilla and cinnamon (if using) and beat until fluffy. 
 11 -  Frost cooled cupcakes using a piping bag or spatula.