- 1 ½ cups all-purpose flour
- ½ teaspoon baking soda
- ½ teaspoon baking powder
- ½ teaspoon salt
- 1 teaspoon ground cinnamon
- ¼ teaspoon ground nutmeg
- ½ cup unsalted butter, softened
- ½ cup brown sugar
- ¼ cup granulated sugar
- 1 large egg
- 1 teaspoon vanilla extract
- 1 cup finely shredded carrots
- ½ cup chopped pecans or walnuts (optional)
- ½ cup raisins (optional)
For the Cream Cheese Frosting:
- 4 oz cream cheese, softened
- ¼ cup unsalted butter, softened
- 1 cup powdered sugar
- ½ teaspoon vanilla extract