Ni modo is one of the most common expressions in Mexican Spanish. It means roughly “no way around it” or “oh well.” The dictionary of the Spanish Academy marks it as colloquial and Mexican. It is used “to indicate that something no longer has a remedy.”
People say it when a bus is missed, a deal falls through or a plan fails, and the conversation moves on.