Preheat the oven to 350°F. Line a large baking sheet with parchment paper.
In a medium bowl, whisk together the flour, cinnamon, ginger, baking soda and salt.
In the bowl of a stand mixer fitted with the paddle attachment, beat the sugar and butter on medium speed for 2—3 minutes, until light and fluffy.
Add the egg and vanilla and beat until combined.
Add the dry ingredients and mix on low speed just until a few streaks of flour remain. Fold in the carrots and pecans with a rubber spatula until evenly distributed.
Using a 1.7-tablespoon spring-loaded cookie scoop, scoop the dough onto the prepared baking sheet, spacing the cookies about 2 inches apart.
Bake for 12 minutes, or until the edges are lightly golden and the centers are puffed and set. Let cool on the baking sheet for 5 minutes, then transfer to a wire rack to cool completely.
To make the frosting, beat the butter and cream cheese until smooth. Add the vanilla, then gradually add the powdered sugar, and beat until smooth and thick.
Spread a thin layer of icing over each cooled cookie. Let the cookies sit uncovered until the icing develops a dry outer crust before serving.