NEW YORK -

Matt Harvey almost instantly began trying to wave off Mets manager Terry Collins and a trainer after a line drive caromed off the right-hander's knee in the ninth inning.

Stay away. He wanted the shutout.

And he certainly got it, the first one of his stellar young career, but there was no way Collins was not going to check out his prized pitcher.

Harvey proved himself with a warmup toss, then he got All-Star Troy Tulowitzki to pop up a 91 mph slider for the final out of his first complete game, a four-hitter, and New York beat the Colorado Rockies 5-0 Wednesday night.

"I don't like when they come on the field at all so I was trying to shoo them off as quick as I could," said Harvey, who had a big ice wrap on his knee. "I felt fine, I wanted to finish the game."

Harvey said the ball just grazed his knee — even if it shot into shallow right field. Collins had a different view.

"He must have thought I was blind if he thought I thought that glanced off that his leg," Collins said. "I knew it hit him good."

Harvey (9-3) earned the shutout in his 33rd career start. He pitched nine innings of one-hit ball on May 7 but New York lost in 10.

Not this time. Rookie third baseman Wilmer Flores helped make sure of that.

Filling in for injured David Wright, Flores cleared the bases in the eighth against Manny Corpas with a three-run double for his first big league RBIs.

"I think I was a little more relaxed," Flores said a night after going 0 for 4 in his debut.

Omar Quintanilla and John Buck each had RBI singles off Jhoulys Chacin (10-6), who lost for just the third time in his last 11 starts. Flores got his first big league hit and scored on Quintanilla's hit in the second inning. Flores went 2 for 4.

The Rockies lost for the eighth time in nine games on their 10-game road trip. They lost All-Star left fielder Carlos Gonzalez to the disabled list before the game then learned that Thursday starter Tyler Chatwood was going on the DL with elbow inflammation. His start was pushed back this week because of a hamstring injury. He tested it in a bullpen session Tuesday but had elbow trouble Wednesday.

Manager Walt Weiss was not sure who would start Thursday against the Mets.

"Tyler's been real good for us," Weiss said. "When it rains it pours."

Harvey came out for the ninth to loud cheers. And they grew with each out.

He retired pinch-hitter Corey Dickerson on a groundout to shortstop Quintanilla. Then Dexter Fowler grounded out to short. The fans stood and chanted "Let's Go Harvey!" when Charlie Blackmon stepped in. The cheers turned to groans when Blackmon lined the pitch off Harvey's knee.

After his warmup toss, Harvey got Tulowitzki to pop out to second base on his 106th pitch for the final out.

"It's awesome," Harvey said of his first shutout. "As a starting pitcher that's what you shoot for every time."

The 24-year-old right-hander struck out six without walking a batter.

In his previous outing, Harvey lost to a most surprising nemesis, the Miami Marlins. In four starts this season against the Marlins, he is 0-1 with a 3.52 ERA. Against the rest of the majors, he is 9-2 with a stingy 1.84 ERA.

Miami tagged him for three runs in 5 2-3 innings on Thursday, but he was in command from the start against Colorado.

"He was dirty," Colorado's Todd Helton said. "He was as good as I've seen in a long time."

Wilin Rosario grounded a single past a lunging Quintanilla with two outs in the second inning for the Rockies' first baserunner. Michael Cuddyer became the next Rockies player to reach with a two-out single to center field in the fourth.