I think the 1st party games for both the Nintendo 64 and Gamecube was what kept them going all those years, the lack of 3rd party games for both, failed them. It's partly why Playstation sold so much, it had cheaper CD's and plenty of 3rd party support and was cheap itself. Who knows, the 64 could've of been a massive success, if it used CD's instead of the old and expensive cartridges. The games, both Nintendo consoles got were great though, but at least they didn't share the same fate as the Sega Dreamcast though.
Xbox One, PS4 and Switch (+ Many Retro Consoles)
'When the people are being beaten with a stick, they are not much happier if it is called the people's stick'- Mikhail Bakunin
Prediction: Switch will sell better than Wii U Lifetime Sales by Jan 1st 2018