Disaster averted — for now.

Embattled Knicks coach Mike Woodson called the season “a disaster’’ on Thursday with his job on the line. But Carmelo Anthony made sure the Knicks didn’t lose against his former team, and also made sure Woodson won’t be losing his job before the weekend’s up.

With Anthony burying 31 points in 32 minutes and struggling point guard Raymond Felton electrifying the team, the Knicks rallied from an early 10-point hole and posted an impressive 117-90 rout over the Nuggets at the Garden to snap their three-game losing streak.

If Woodson keeps the Knicks (20-30) playing like this, with the same pace and defensive tenacity, he’ll be just fine.

“This proves we should be playing better and can play better,’’ J.R. Smith said.

Before the game, Woodson said “it’s not too late’’ to mount a big playoff push and said “anything’s possible’’ when and if the Knicks get to the postseason. He sounded like a man trying to convince his superiors everything isn’t so dire despite his “disaster’’ remark. Owner James Dolan has contemplated a coaching change since the dreadful loss to the league-worst Bucks Monday.

The entire locker room praised the coaching staff for Thursday’s spirited practice, and Anthony even saluted the in-game moves of Woodson, whose club plays in Oklahoma City on Sunday.

“Although we got down early we stayed composed,’’ Anthony said. “We made adjustments throughout the course of the game. It was a great team win and we want to build on that. I was surprised we slowed them down as much as we did [Friday].’’

Two weeks after his franchise-record 62-point performance, Anthony hit 12 of 21 shots, including 4 of 9 from 3-point range. Amar’e Stoudemire added 17 points as six Knicks recorded double figures. Even young big man Jeremy Tyler posted his first career double-double — 12 points, 11 rebounds in 22 minutes — and center Tyson Chandler seemed open all night underneath (12 points, 6 of 7). All the bigs thrived.

“We played loose, we played aggressive, we got after it,’’ Stoudemire said. “We had great spacing offensively and the ball moved.’’