An aspiring rapper who led cops on a car chase in Minnesota was fatally shot after confronting officers with a knife during a pursuit he livestreamed on Facebook, authorities said.

The man, Brian J. Quinones, ran a red light in Edina late Saturday and refused to pull over, leading cops to follow him into nearby Richfield. He kept ignoring commands to stop, according to emergency dispatch audio obtained by the Minneapolis Star Tribune.

In the live video, the rapper known as “Blessed The MC” can be seen bobbing his head as rap music blares in the background and police lights flash in his rear window while he drives.

He then exits the car abruptly with what appears to be a large knife. Cops fire at least five shots before pausing and squeezing off another five rounds, the Star Tribune reported.

“So sorry,” Quinones posted late Saturday, just prior to posting the livestream, which had been removed from his page as of Monday.

But friends and family reposted snippets of the footage — which ran for another 97 minutes after the shooting — as they mourned the Puerto Rico native who had lived in Minnesota for decades, a family friend told the newspaper. Other loved ones shared photos from a vigil Sunday held where Quinones was killed.

“It was a really heavy feeling of hatred standing where they took your life,” one woman wrote. “Seeing everyone that loved you was an emotional thing.”

The incident remains under investigation by the Hennepin County Sheriff’s Office. Edina police said in a statement that no officers were injured in the shooting.

“The Edina and Richfield Police Department express our thoughts and prayers to all those involved in this tragic incident,” department officials said in a statement.

About 175 people gathered for a vigil Sunday to remember Quinones, a married father of one who worked at General Mills and occasionally as a barber, the Star Tribune reported.

“Family was kind of the most important thing to him,” friend Bryan Vinces told the newspaper. “He wanted to be the dad that his dad wasn’t to him.”

Quinones also dabbled in rap and was inspired by artists such as Kanye West, Jay-Z, DMX and J. Cole. Earlier Saturday, just hours prior to the fatal shooting, he released an album called “T.I.M.E. (This is My Everything),” a 13-track project he distributed on SoundCloud.

“My music is my interpretation of the world,” Quinones wrote. “I see the good as I do the evil. My lyrics can be profound at times, witty, catchy, inspiring and everything in-between.”

Dozens of mourners have posted remembrances on Quinones’ Facebook page, including one woman who said he “didn’t deserve” to be killed by cops and noted the “demons” that he was unable escape prior to the police-involved shooting.

But other comments noted the large knife he appeared to have in his left hand just before getting out of his car, with some suggesting that he aimed to commit “suicide by cop” through his actions.

A message seeking comment from the Hennepin County Sheriff’s Office was not immediately returned early Monday.