Ensure your pan is well-heated and coated with a thin layer of oil or butter before adding the gnocchi. Stirring occasionally prevents sticking. If they still stick, your pan might be too hot, so try reducing the heat slightly.