Preheat the oven to 350 degrees.
Line a cupcake pan with paper liners or use silicone cupcake liners
In a medium bowl, whisk together the flour, baking soda, baking powder, salt, cinnamon, nutmeg, espresso powder, and sugar.
In a large bowl, mix the oil, milk, coffee, eggs, and vanilla.
Slowly add the flour mixture to the coffee mixture and beat on medium speed until smooth. Do not overmix.
Scoop the batter evenly into the cupcake liners.
Bake for 25 to 30 minutes, until a toothpick inserted in the center comes out clean.
Let cool before frosting.