NEW YORK (CBSNewYork/AP) — JaCoby Jones homered and drove in four runs, including a go-ahead double in the seventh inning, and Miguel Cabrera also connected as the Detroit Tigers halted their nine-game losing streak Friday night with a wild 9-8 victory over the New York Mets.

In a back-and-forth slugfest between two teams swept by lowly Miami within the past week, Detroit blew an early 4-0 lead and later rallied three times from one-run deficits.

New York hit five home runs on a windy night at Citi Field, including a tie-breaking shot by pinch-hitter Aaron Altherr off winner Buck Farmer (3-3) in his first plate appearance with the Mets.

Amed Rosario, Adeiny Hechavarria, Pete Alonso and Wilson Ramos also went deep for New York.

Pete Alonso #20 of the New York Mets connects on a fifth inning home run against the Detroit Tigers at Citi Field on May 24, 2019. (Photo by Jim McIsaac/Getty Images)

For Alonso, his incredible start to the season is now starting to resemble the historic rookie campaign of Aaron Judge. Alonso’s titanic blast off the Citi Field foul pole Friday gave him 17 home runs and 38 RBI in his first 50 games.

Judge had 18 homers and 40 RBI during that same span in 2017. He would go on to set a rookie record with 52 round-trippers.

Cabrera reached base safely four times, delivered a sacrifice fly and went the other way for his 467th home run and second this season. The two-time MVP had gone 81 at-bats without a long ball since April 26 before connecting off an ineffective Noah Syndergaard to tie it 5-all in the fifth.

Detroit got four hits from the No. 9 spot in the lineup, including an RBI single by pinch-hitter Brandon Dixon in the seventh that made it 9-7. More stunning were two singles off Syndergaard (on 95-plus mph pitches) by Tigers starting pitcher Gregory Soto, who had never batted in the minors or majors before Friday night.

Dixon’s hit followed Jones’ two-run double with two outs off Drew Gagnon (3-1). Jones also hit a two-run homer in the second off Syndergaard, who gave up six runs and 10 hits in 5 1/3 innings.

It was the most earned runs allowed by Syndergaard since he allowed seven in four innings at San Diego in June 2015. The right-hander has served up 10 homers in 69 1/3 innings this season after permitting only nine in 154 1/3 innings last year.

New York was coming off a four-game sweep at home against NL East rival Washington. Fans took their frustrations with Friday’s game out on Syndergaard, loudly booing the righty’s latest inconsistent performance against a Detroit club that came into Queens with an 18-29 record.

TRAINER’S ROOM:

Mets OF Michael Conforto was eligible to come off the seven-day concussion list, but wasn’t activated. He took batting practice on the field and has been feeling good after going through baseball activities recently. The team is just waiting for Conforto to be cleared by Major League Baseball and it hopes that will happen this weekend. After that, he could be plugged right back into the lineup, manager Mickey Callaway said.

UP NEXT:

LHP Jason Vargas (1-2, 5.92 ERA) is expected to come off the injured list to make his first big league start since May 5, when he was removed with a strained left hamstring in Milwaukee. Vargas threw 74 pitches in a solid rehab outing Sunday for Double-A Binghamton. He is 4-6 with a 6.38 ERA in 13 career starts against the Tigers.

(© Copyright 2019 CBS Broadcasting Inc. All Rights Reserved. The Associated Press contributed to this report.)