Beat the butter and sugar for the muffins until pale and fluffy.
Crack the eggs in a bowl and whisk. Add gradually to the mixture, mixing each time. If the mixture begins to split, add a little of the flour.
Fold in the flour, nutmeg and cinnamon, mix well.
Spoon about two heaped teaspoons of the filling into each cupcake case in a muffin tin.
Bake for 25 minutes until cooked through.
Once cooked, remove from the tin and place the cupcakes on wire rack to cool.
Whilst they are cooling, make the pear purée by peeling, coring and chopping the pears into small pieces.
Put the pieces into a saucepan with the brown sugar and water, cover with a lid and cook for 15 minutes stirring occasionally and bashing with the wooden spoon to make them mushy. Take the lid off and cook for another 5 minutes to reduce down.
Once the pears are soft and mushy (a little like a jam), remove from the heat and leave to cool. To make the frosting, whisk the butter, add the icing sugar and vanilla extract and whisk well together.
To fill the muffins, scoop out a hole in the top of each cooled cupcake.
Fill each hole with a teaspoon of pear purée.
Pipe the butter icing onto each cupcake to cover the hole and purée.
Error type: "Forbidden". Error message: "Access Not Configured. YouTube Data API has not been used in project 176212024359 before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/youtube.googleapis.com/overview?project=176212024359 then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry." Domain: "usageLimits". Reason: "accessNotConfigured".
Did you added your own Google API key? Look at the help.