Preheat the oven to 350°F (175°C).
In a large mixing bowl, combine the flour, sugar, baking soda, baking powder, salt, and ground cinnamon.
In a separate mixing bowl, whisk together the vegetable oil, eggs, and vanilla extract until thoroughly combined.
Slowly pour the wet mixture into the dry mixture. Use a spatula to fold in the ingredients until everything is well combined.
Grate your carrots and drain the crushed pineapple. Add them to the batter and use a spatula to gently fold them in until evenly distributed.
Pour the batter into the prepared baking pan and spread it out evenly. Bake for 35-40 minutes.
Prepare the frosting by beating together softened cream cheese and unsalted butter until light and fluffy. Gradually add in powdered sugar and vanilla extract, beating until smooth.
Once the cake has cooled completely, spread the frosting evenly over the top.
Cut the cake into slices and serve with a cold glass of milk or a hot cup of coffee.