Preheat the oven to 350ºF/175ºC. Line the bottom of a 9-inch cake pan with parchment paper and grease the sides. (Alternatively, grease and line an 8x8-inch square baking pan with parchment paper.)
Brown the butter. In a medium saucepan, melt 1 cup of butter (from the cake batter AND frosting recipe) over medium heat. Use a spatula or wooden spoon to stir occasionally, to ensure the butter melts evenly. As the butter melts, it will start to foam—this is the water evaporating from the butter. Keep a close eye on the butter as it continues to cook. After the foaming subsides, you'll start to see brown specks (milk solids) forming at the bottom of the pan. Once the butter is golden brown and smells nutty, remove it from the heat. (Keep a close eye on this, butter goes from brown to burnt very quickly!) The whole process should take about 5 minutes. Pour ½ cup of the brown butter into a large bowl. Transfer the remaining butter to a small bowl and set aside in the fridge to harden. Wipe the saucepan clean.
Make the spiced nuts. In the same saucepan over medium-low heat, combine the sugar, water, cinnamon, ginger, cayenne, and salt (see tip for spice adjustment!). Stir until the sugar has dissolved, about 1 minute. Add the pecans and mix until the pecans are evenly coated. Taste and add more salt, if needed. Transfer the spiced nuts to a parchment-lined plate, spreading out into an even layer. Let them cool slightly, then transfer to a cutting board and coarsely chop.
Mix the cake. In a small bowl, combine the flour, baking powder, cinnamon, ginger, and salt.
To the large bowl with the still-liquid brown butter, whisk in the oil and brown sugar until combined. Whisk in the eggs and vanilla. Mix in the dry ingredients until no clumps remain, then fold in the shredded carrots and 1 cup of the chopped spiced pecans. Transfer to the pan and bake until a toothpick inserted in the center comes out clean, about 50 to 60 minutes. Allow it to cool completely.
Make the cream cheese frosting. Combine the remaining brown butter (now solidified), cream cheese and vanilla in a medium bowl. Use an electric mixer to beat until smooth and combined. Add the powdered sugar and salt and beat until light and fluffy.
Spread the frosting over the carrot cake, then garnish with remaining spiced nuts.
