The push to quickly fulfill orders from Amazon and other online retailers has worsened gridlock and pollution. And the packages, often left unattended in lobbies and on doorsteps, are also luring thieves.

Now, New York is looking for potential solutions.

Nearly 1.5 million packages are delivered daily in New York City …

More packages mean more delivery trucks double-parking on city streets, contributing to air pollution with their idling engines and jamming busy roadways.

The Times reporters Matthew Haag and Winnie Hu found that parking violations for FedEx and UPS have gone up 34 percent since 2013. Truck traffic on the George Washington Bridge has gotten so bad that it is now the most congested stretch of highway for trucks in the country.

To accommodate all those packages — and deliver them as quickly as possible — companies are working to build warehouses closer to where people live, my colleagues wrote. In New York, five are in the works. Some residents, however, are worried that warehouses could increase the number of diesel-spewing trucks on the streets.