Slice the bacon, finely chop the onion and garlic and roughly chop the spinach.
Warm a medium skillet/frying pan over a medium heat.
Add the bacon to the pan, stirring now and then until the fat starts to render.
Once you have some fat rendered, add the onion and cook, stirring now and then, until the onion softens and the bacon is starting to crisp.
Add the garlic and cook a minute more.
Add the gnocchi and stir as it cooks for a minute or two then add the stock (or wine) to deglaze.
Deglaze a little, add flour to help absorb the fat and thicken the sauce then add the cream.
Add the spinach along with the peas, if using.
Wilt down the spinach, stirring so it all warms in the sauce - it will just take a minute or two - then add the pecorino.
Stir it through so it melts into the sauce.
Mix everything well - if it's a little thick, add a little more cream and/or stock then serve.
