01 -
Preheat oven to 350°F and line baking sheets with parchment paper.
02 -
Cream butter, brown sugar, and granulated sugar until light and fluffy.
03 -
Mix in the egg and vanilla extract until smooth.
04 -
Stir in flour, baking soda, cinnamon, nutmeg, and salt.
05 -
Fold in shredded carrots and pecans if using.
06 -
Scoop dough onto baking sheets, spacing them 2 inches apart. Bake for 10-12 minutes until edges are set and centers are soft.
07 -
Cool on the baking sheet for 5 minutes, then transfer to a wire rack.
08 -
Beat cream cheese and butter until smooth, then mix in powdered sugar and vanilla.
09 -
Spread frosting on one cookie and sandwich with another.
10 -
Chill for 15 minutes before serving for the best texture.