Durand Scott led Miami with 18 points and Julian Gamble added 16 to help the Hurricanes win their ninth straight game, a run that included a blowout of then-No. 1 Duke last week.
C.J. Leslie had 18 points and 12 rebounds to lead the Wolfpack (16-6, 5-4), who played without starting point guard Lorenzo Brown due to an ankle injury. N.C. State nearly topped Johnson's tip when freshman Rodney Purvis launched a heave from beyond halfcourt at the horn, a shot that hit the rim and rattled out to end it.
The Hurricanes were only the ninth team to start 7-0 in ACC play since the 1996-97 season and first since Duke started 10-0 five years ago, according to STATS LLC. Miami certainly earned its latest league win, fighting off a determined Wolfpack team that got strong performances from Purvis and fellow freshman Tyler Lewis in place of its missing floor leader.
Lewis, who hadn't scored more than six in a game all season, finished with 16 points and five assists in 36 minutes. But he missed a contested jumper with about 15 seconds left, and Miami grabbed the rebound and called timeout with 10.9 seconds remaining to set up the final play.
Larkin's shot on the right side bounced off the rim, but Johnson tipped the ball up and in over Richard Howell to stun the home crowd that had been as loud as it was for rivalry wins against Duke and North Carolina this month.
It was the first home loss in 13 games for the Wolfpack, the preseason ACC favorite. N.C. State's four league losses have come by a combined seven points, including a 51-50 defeat at Maryland in which the Wolfpack lost on a last-second putback on Jan. 16.
Miami led by nine in the first half and N.C. State led by 10 midway through the second half, while the Wolfpack shot 54 percent for the game. Miami shot 49 percent but went just 3 for 21 from 3-point range, though the Hurricanes helped themselves by scoring 28 points in the paint after halftime and 50 for the game. Miami also scored 10 second-chance points in the second half, the last on Johnson's winning tip.