01 - Bring a large pot of salted water to a rolling boil.
02 - Combine basil, garlic, pine nuts, and Parmesan in a food processor. Pulse until coarsely chopped. With motor running, gradually stream in olive oil until smooth and creamy. Season with salt, pepper, and lemon juice if desired. Set aside.
03 - Add gnocchi to boiling water and cook according to package directions, typically 2–3 minutes until they float to surface.
04 - Drain gnocchi, reserving a small amount of cooking water for sauce consistency.
05 - Toss hot gnocchi with pesto in a large bowl. Add splash of reserved cooking water if needed for silkier consistency. Serve immediately garnished with extra Parmesan, fresh basil, and additional pine nuts.