James Paxton entered Tuesday night with a 0.34 ERA at Yankee Stadium this season.

He ended it by being booed off the mound when he was knocked out in the third inning of the Yankees’ 10-4 loss to the Mets in the nightcap of a split doubleheader.

It was the second straight rocky start for the left-hander, who spent time on the injured list with left-knee inflammation and is still pitching with a brace.

Afterward, Paxton said he didn’t think his struggles have been because of the knee.

“I don’t think that’s a factor,’’ said Paxton, who allowed six runs in 2 ²/3 innings. “It was just a bad game on my part.”

As for the brace, Paxton said: “I don’t think that’s an issue. This is just a little bit of a rough stretch right now. I’ve got to get back to work and figure out what I need to do to help this team win.”