About 400 people — many of them Cubs fans heading home after the team’s season-ending loss to the Los Angeles Dodgers — had to evacuate their Metra train when it caught fire late Thursday in Evanston.

The engine of outbound train 367 on the Union Pacific North line caught fire about 11 p.m. near the Davis Street station in Evanston, according to a Metra spokesman.

Passengers then boarded the following train, 369, when it stopped in Evanston, and service was running about an hour and a half behind schedule, the Metra spokesman said.

No injuries were reported.