A bill opposed by Mayor de Blasio that would have dramatically expanded the number of street-vending permits was suddenly yanked Monday.

City Council Speaker Melissa Mark-Viverito, who was pushing the measure in her final days in office, pulled it when she couldn’t round up the minimum 26 votes required.

“The speaker has always sought consensus in the body before bringing legislation before the full City Council for a vote,” said her spokesperson, Robin Levine.

“While the speaker continues to believe that the city’s antiquated street vending laws are in dire need of modernization, we will not be moving forward with a vote at this time.”

The street-vendor plan would have increased the number of vendors by roughly 330 per year over 10 years.

Business leaders complained that the extra vendors were unfair competition.

The number of street vendor permits is currently capped at 5,100.

The Street Vendor Project, which represents more than 1,800 vendors, said the mayor’s opposition killed the bill.

“Mayor de Blasio is to blame…” the group said in a statement. “We don’t understand why someone who claims to be a progressive would harm some of the hardest-working and most vulnerable New Yorkers.”