First, mix together all the dry ingredients in a medium bowl.
Then, mix together the wet ingredients including the strained finely shredded carrots and optional pineapple.
Add cupcake wrappers to a muffin pan.
Fill each cavity ⅔ the way up with batter. It should make 14-16 cupcakes.
Cook in preheated oven for 25-30 minutes, until toothpick comes out with just a few crumbs and tops bounce back.
Let cool fully on cooling rack.
Prep the frosting by whipping together all ingredients in a large bowl with a hand mixer or stand mixer.
Transfer frosting to a piping bag and pipe onto each cooled cupcake.
Option to top with sprinkles or crushed nuts!
