WHEN gourmet food trucks first appeared on America’s streets in 2008, many dismissed them as a fad. Nearly a decade later, it is clear that the trendy trucks—known for offbeat dishes, low prices and clever use of social media—are here to stay. That does not mean they are always welcome.