With All-Star Julius Randle back in New York, the Knicks needed someone to step up. Jalen Brunson did that, and more.

New York’s point guard scored a career-high 48 points and the Knicks moved closer to a playoff berth while waiting for Randle to get healthy, outrunning the Cleveland Cavaliers 130-116 on Friday night.

“This loss hurts,” said Donovan Mitchell, who led Cleveland with 42 points. “We need to feel it and be ready to use it when the time comes. Obviously, we control our destiny and we’ll probably see these guys in two weeks.

Leading by three, the Knicks outscored the Cavs 14-2 to open the fourth and get some breathing room in a game played at a frenetic pace. The teams combined for 89 points in the first quarter and 151 in the first half.

The Cavs got within 123-116 before Brunson put the Cavs away with a layup following a timeout and then a 3-pointer. He missed a floater in the final seconds that would have given him 50 points.

Brunson, who averages 23.6 points, scored 33 in a wild first half without much defense. The teams combined for 89 points in the first quarter, tying the third most in the first 12 minutes of a game in NBA history. The record of 91 is shared by Utah and Denver (1982), and Miami and Washington (2021).

Also, Cleveland’s 47 points in the first quarter were the most in the franchise’s 53-year history.

The Cavs were without two of their top defenders, center Jarrett Allen (groin) and Isaac Okoro (knee).