North Korea has fired a ballistic missile into the Sea of Japan — hours after a senior White House official warned that the clock had officially “run out” on the nation’s nuclear weapons program.

The projectile was launched Wednesday morning, local time, from the Sinpo region on its east coast, and landed in the waters off the Korean Peninsula, according to South Korea’s defense ministry.

It traveled about 40 miles before descending into the ocean around 11:51 a.m., AFP reports.

The test was later confirmed by US military officials. The weapon that was used — a KN-15 medium-range ballistic missile — was said to pose no threat to North America.

The show of force comes just hours after a senior White House official warned that possible retaliation was coming for North Korea’s countless missile tests.

“The clock has now run out, and all options are on the table,” the official said, according to CNN.

They added that North Korea — which has so far conducted at least five nuclear tests — is ultimately a “matter of urgent interest for the president and the administration as a whole.”

The comments were made during a White House media briefing Tuesday, ahead of President Trump’s meeting with Chinese President Xi Jinping in Florida this week. Two senior officials, who chose to remain anonymous, were said to have led the briefing.

North Korea’s latest missile test is being carefully analyzed by both South Korea and the Trump administration.

“The military is keeping a close watch over North Korea’s provocative moves and maintaining a high defense posture,” the South Korean defense ministry said.

The launch will now likely lead to even more concerns about the possible threat of war.

Trump has already been weighing military action against North Korea in an effort to thwart their nuclear weapons program — and he’s even threatened to do it alone, should China refuse to help.

A North Korean foreign ministry spokesman Monday called the president’s recent comments and actions “reckless” — adding that they’re bringing an already tense situation “to the brink of a war,” according to AFP.

Believing that they could strip Pyongyang of its “nuclear deterrent” — through sanctions or any other means — is “the wildest dream,” the spokesman said.

The White House official who warned of retaliation Tuesday said such options could include economic sanctions against Chinese companies that do business in North Korea, cyberattacks or military action.

With Post wires