Nintendo would have to radically change their approach to hardware and the culture of their fandom in order to match Sony and Microsoft in the quest for third-party support.
In regards to hardware, Nintendo would need to start catching up, instead of staying a gen behind as they have done with the Wii and Wii U. At the same time, they would have to sell enough units to keep up decently with the competition.
However, there is a culture problem as well. Some of Nintendo's fans are simply a casual crowd who don't really have interest in much more than Mario, Just Dance, etc. As for the Nintendo hardcore, a lot of them live entirely or mostly in a "Nintendo bubble," if you will, where they tend to stick with Nintendo franchises and tailor their gaming tastes based on that. These people are not inclined to buy third-party titles even when Nintendo platforms do get them.
Because their handhelds don't have as significant a culture problem and because the handheld market isn't very multiplatform-oriented, we find that Nintendo's handhelds do better in this regard than their consoles do.