I think the Wii fixed many problems Nintendo had on the home console side - they've always been improving on the handheld side in my opinion (DS became the RPG Mecca).
N64 lost a lot of people because games were WAY too expensive, and there were very few ever released for it (it took years for the N64 total library to exceed 100 games).
GameCube lost more people because Nintendo stopped behaving like Nintendo (as someone mentioned), and instead they tried to be more like Sony. Many people saw GameCube as Playstation Junior.
So with the Wii and DS, I do think Nintendo successfully had a combo of systems where I felt fine buying about ~140 games (Although about 50 of those were downloadable) during the generation between the two systems.
I describe myself as a little dose of toxic masculinity.