Preheat the oven to 400º. Toss the butternut squash with the olive oil and a pinch of salt. Pour onto a baking sheet, then roast butternut squash and diced onions for 25 minutes.
Once the squash has baked and slightly cooled, add the squash, onions, heavy cream, salt, pepper, spices, and broth to a blender. Blend until very smooth.
Meanwhile, bring a large pot of water to a boil. Cook gnocchi until al dente.
Pour the sauce into the pot that the gnocchi was cooked in, then add in the gnocchi, toss to combine, then garnish with fresh rosemary, sprinkle of shaved parmesan, and drizzle of olive oil.
Notes
Don't crowd the baking sheet when adding the butternut squash to roast. If you overcrowd the sheet pan it will steam instead of roast. Which is fine if you want the butternut squash steamed instead of charred and roasted.Add salt and pepper as you go, so that the flavors are well balanced.If the butternut sauce is too thin, add some parmesan cheese to the blender which will help thicken it up.Cook the gnocchi just until they begin to the float to the top of the boiling pot of water, then strain and immediately add back to the pot, then pour the sauce over and stir.