Preheat your oven to 190°C or 375°F and grease and line the bottom of a 7-inch/18cm round cake pan with parchment paper.
Start by having your carrots grated and walnuts or pecans chopped up.
Whisk together the flour, baking powder, baking soda, cinnamon, nutmeg, ginger, cardamom and salt. In a separate bowl, whisk together the drained (if from a can) crushed pineapple, milk, sugar and oil.
Fold the dry ingredients into the wet, then add the grated carrots with the nuts and stir to combine everything.
Pour the batter into the greased and lined cake pan and even it out.
Bake for about 45 minutes or until a toothpick inserted in the center comes out clean.
Let it cool about 10 minutes in the pan before taking it out and leaving it to cool completely on a wire rack before frosting.