Preheat and Prepare: Preheat your oven to 350°F (175°C). Grease a 9x13 inch baking pan.
Combine Dry Ingredients: In a large mixing bowl, whisk together flour, sugar, baking soda, and salt.
Mix Wet Ingredients: Create a well in the center and add eggs, crushed pineapple (with juice), vanilla extract, cinnamon, and nutmeg. Stir until combined. The batter will be slightly lumpy.
Bake: Pour batter into the prepared pan. Spread evenly and bake for 35-40 minutes or until a toothpick inserted into the center comes out clean.
Prepare Frosting (Optional): While the cake cools, beat butter and cream cheese together until smooth. Gradually add powdered sugar and vanilla extract. Spread frosting over the cooled cake and sprinkle chopped pecans on top.
Notes
Gluten-Free Option: Use a gluten-free flour blend.
Dairy-Free: Skip the frosting or use a dairy-free cream cheese alternative.
Nut-Free: Omit pecans.
Lower Sugar: Reduce the sugar by 1/2 cup or substitute with a sugar alternative.
Serving Tip: Serve warm with a scoop of vanilla ice cream for a delightful treat.