DENVER — Marcus Stroman pitched seven shutout innings, Amed Rosario, Brandon Nimmo and Pete Alonso all homered in the sixth to break open a scoreless game and the New York Mets beat the Colorado Rockies 6-1 Tuesday night to boost their flickering playoff hopes.

New York pulled within four games of Chicago and Milwaukee for the second NL wild-card berth. The Mets have 11 games left in the regular season.

Stroman (9-13) allowed four hits, struck out seven and walked one in helping the Mets bounce back from consecutive losses.

Charlie Blackmon homered off Luis Avilan with two outs in the ninth for the Rockies' lone run.

Tim Melville (2-3) had put up zeroes right along with Stroman, facing the minimum through five innings with an assist from his defense, which turned three double plays while he was on the mound.

But Todd Frazier singled to start the sixth and Rosario followed by driving a 1-1 offering from Melville into the left field bleachers for his 13th home run and a 2-0 lead.

One out later, Nimmo tagged the first pitch he saw for his seventh of the season. Melville got Jeff McNeil to fly out before Alonso, getting the green light on a 3-0 pitch, connected for his 48th home run. The ball landed among the stand of evergreens beyond the center field fence, and Melville was relieved by Philip Diehl.

Alonso, who added an RBI single in the Mets' eighth, is one homer shy of tying Mark McGwire for the second-most home runs by a rookie in a season. The New York Yankees' Aaron Judge hit 52 home runs as a rookie in 2017.

Stroman, acquired from Toronto in a July 28 trade, improved to 3-2 with a 3.86 ERA in his nine starts for New York. The Mets have gone 6-3 with Stroman on the mound.

METS 6, ROCKIES 1

New York AB R H BI BB SO Avg.

Nimmo cf-lf 3 1 1 1 1 1 .210

McNeil lf 3 0 0 0 1 1 .317

Lagares cf 0 0 0 0 0 0 .210

P.Alonso 1b 4 1 2 2 0 0 .264

Canó 2b 4 0 1 0 0 0 .262

Wilson p 0 0 0 0 0 0 ---

Avilán p 0 0 0 0 0 0 ---

Ramos c 4 1 2 0 0 2 .293

Conforto rf 3 0 0 0 1 0 .252

Frazier 3b 4 1 2 1 0 0 .244

Rosario ss 4 1 2 2 0 0 .289

Stroman p 2 0 0 0 0 0 .059

b-Panik ph-2b 2 1 1 0 0 0 .279

Totals 33 6 11 6 3 4

Colorado AB R H BI BB SO Avg.

Story ss 4 0 1 0 0 1 .296

Murphy 1b 4 0 0 0 0 1 .281

Arenado 3b 4 0 0 0 0 1 .313

Blackmon rf 3 1 2 1 1 1 .319

McMahon 2b 4 0 0 0 0 1 .253

Tapia lf 3 0 0 0 0 2 .275

Hilliard cf 2 0 2 0 0 0 .195

c-Hampson ph-cf 1 0 0 0 0 0 .242

Wolters c 3 0 0 0 0 0 .270

Melville p 1 0 0 0 0 1 .167

Diehl p 0 0 0 0 0 0 ---

Almonte p 0 0 0 0 0 0 .000

a-Fuentes ph 1 0 0 0 0 0 .200

Parsons p 0 0 0 0 0 0 .000

d-Valaika ph 1 0 1 0 0 0 .194

Garcia p 0 0 0 0 0 0 .000

Totals 31 1 6 1 1 8

New York 000 004 011_6 11 0

Colorado 000 000 001_1 6 0

a-grounded out for Almonte in the 6th. b-singled for Stroman in the 8th. c-grounded out for Hilliard in the 8th. d-doubled for Parsons in the 8th.

LOB_New York 3, Colorado 4. 2B_Ramos (18), Valaika (5). HR_Rosario (13), off Melville; Nimmo (7), off Melville; P.Alonso (48), off Melville; Blackmon (29), off Avilán. RBIs_Rosario 2 (64), Nimmo (23), P.Alonso 2 (111), Frazier (67), Blackmon (79). CS_Blackmon (5).

Runners left in scoring position_New York 1 (Canó); Colorado 2 (Arenado, Story). RISP_New York 2 for 5; Colorado 0 for 2.

Runners moved up_Conforto, Murphy. LIDP_Conforto. GIDP_Stroman, Rosario, P.Alonso, McMahon.

DP_New York 2 (Canó, Rosario, P.Alonso; Ramos, Rosario, Ramos); Colorado 4 (Story, McMahon, Murphy; McMahon, Story, Murphy; Arenado, Murphy, Arenado; McMahon, Story, Murphy).

New York IP H R ER BB SO NP ERA

Stroman, W, 3-2 7 4 0 0 1 7 95 3.86

Wilson 1 1 0 0 0 1 16 2.45

Avilán 1 1 1 1 0 0 19 5.23

Colorado IP H R ER BB SO NP ERA

Melville, L, 2-3 5 2-3 6 4 4 1 2 77 5.40

Diehl 0 1 0 0 0 0 4 27.00

Almonte 1-3 0 0 0 0 1 3 6.00

Parsons 2 2 1 1 2 1 33 7.20

Garcia 1 2 1 1 0 0 16 10.50

Diehl pitched to 1 batters in the 6th

Inherited runners-scored_Almonte 1-0.

Umpires_Home, Chad Fairchild; First, Kerwin Danley; Second, Mike Estabrook; Third, Ryan Blakney.

T_2:50. A_33,118 (50,398).

Mets sixth. Todd Frazier singles to left field. Amed Rosario homers to center field. Todd Frazier scores. Marcus Stroman grounds out to shortstop, Trevor Story to Daniel Murphy. Brandon Nimmo homers to center field. Jeff McNeil flies out to deep right field to Charlie Blackmon. Pete Alonso homers to center field. Robinson Cano singles to shallow infield. Wilson Ramos strikes out swinging.

4 runs, 5 hits, 0 errors, 1 left on. Mets 4, Rockies 0.

Mets eighth. Joe Panik pinch-hitting for Marcus Stroman. Joe Panik singles to left field. Brandon Nimmo walks. Joe Panik to second. Jeff McNeil strikes out swinging. Pete Alonso singles to shallow right field, tagged out at second, Daniel Murphy to Trevor Story. Brandon Nimmo to third. Joe Panik scores. Robinson Cano grounds out to second base, Ryan McMahon to Daniel Murphy.

1 run, 2 hits, 0 errors, 1 left on. Mets 5, Rockies 0.

Mets ninth. Wilson Ramos doubles to deep right field. Michael Conforto flies out to deep right field to Charlie Blackmon. Wilson Ramos to third. Todd Frazier singles to center field. Wilson Ramos scores. Amed Rosario lines out to center field to Garrett Hampson. Joe Panik flies out to Raimel Tapia.

1 run, 2 hits, 0 errors, 1 left on. Mets 6, Rockies 0.

Rockies ninth. Daniel Murphy flies out to left field to Brandon Nimmo. Nolan Arenado grounds out to second base, Joe Panik to Pete Alonso. Charlie Blackmon homers to center field. Ryan McMahon grounds out to first base, Pete Alonso to Luis Avilan.

1 run, 1 hit, 0 errors, 0 left on. Mets 6, Rockies 1.