Preheat oven to 350°F (175°C). Grease and flour two 9-inch round cake pans.
In a large bowl, whisk together flour, sugar, baking soda, baking powder, salt, and cinnamon.
Add oil, eggs, and vanilla extract. Mix until well combined.
Fold in grated carrots, walnuts, and crushed pineapple.
Divide the batter evenly between the prepared cake pans.
Bake for 30-35 minutes or until a toothpick inserted in the center comes out clean.
Let cakes cool in pans for 10 minutes, then transfer to a wire rack to cool completely.
For the frosting, beat 8 oz cream cheese, 1/2 cup butter, 2 cups powdered sugar, and 1 teaspoon vanilla extract until smooth.
Frost the cooled cakes and enjoy!