Cities around the world are replacing old streetlights with energy-efficient LEDs. Not everyone is happy about it.

Streetlights that use light-emitting diodes have a lot of appeal. They require roughly 50% less energy than the common high-pressure sodium and metal-halide lamps. And they last much longer, resulting in big cost savings.

The...