Flights from New York’s LaGuardia airport resumed early Friday after they were delayed or diverted overnight by an explosion at an electrical substation that cut off power.

The first services in the early morning were listed to operate as scheduled, including a 5:45 a.m. United Airlines service to Houston and a 5:52 a.m. American Airlines departure to Columbus, Ohio. Three planes that had been due to take off late Thursday were set to depart by 8:15 a.m.

Travelers should still check with their carrier on the status of their flight and allow extra time when coming to the airport, the airport’s website advises.

The explosion in Astoria, New York City, illuminated the skyline with a bright blue light. The glow could be seen from Manhattan shortly after 9 p.m. Thursday following a “brief electrical fire” at the facility in the Northern Queens neighborhood, said Bob McGee, a spokesman for utility Consolidated Edison Inc.

LaGuardia had to switch to backup generators during the blackout. Power has since been restored but not before Delta Air Lines Inc. and American Airlines diverted some of their flights to nearby airports.

The blue light prompted a wave of commentary on social media, with New Yorkers joking about its origins. It’s "*Not* aliens," tweeted Eric Phillips, a spokesman for Mayor Bill de Blasio.

“There was a brief electrical fire at our substation on 20th Avenue & 32nd Street in Astoria this evening, which caused a transmission dip,” Con Ed tweeted. “All power lines serving the area are in service and the system is stable.” The company said it’s investigating the cause of the blaze.