In a large bowl, whisk together the large eggs, vegetable oil, granulated sugar, light brown sugar, and vanilla extract until smooth and well combined.
3 large eggs, 3/4 cup vegetable oil, 3/4 cup granulated sugar, 1/2 cup light brown sugar, 2 teaspoons vanilla extract
In a separate medium bowl, whisk together the all-purpose flour, ground ginger, ground cinnamon, baking powder, baking soda, salt, and nutmeg until combined.
2 cups all-purpose flour, 2 teaspoons ground ginger, 2 teaspoons ground cinnamon, 1 teaspoon baking powder, ½ teaspoon baking soda, ½ teaspoon salt, ½ teaspoon ground nutmeg
Gradually add the dry ingredients into the wet ingredients, mixing gently with a spatula just until everything is combined and no flour streaks or pockets remain in the batter. Be careful not to overmix.
Stir in the shredded carrots and chopped walnuts or pecans (if using) gently just until combined.
2 cups grated carrots, 1/2 cup chopped pecans or walnuts
Pour the batter into the prepared loaf pan and smooth out the top.
Bake for 60-75 minutes, or until a toothpick inserted into the center of the loaf comes out clean.
Allow the bread to cool inside the loaf pan for 15 minutes. Remove the loaf from the loaf pan and transfer it to a wire cooling rack to cool completely before frosting.