By personal experience, home systems only. I actually had quite a bunch of good third party games on N64, much more and better ones than on everything after it until Switch. Switch can overtake N64, not sure yet.
1. Super NES
2. NES
3. N64
4. Switch
5. GameCube
6. Wii
7. WiiU
Handhelds is more difficult, but I think I'd rank those the as follows. I think the two lines are too different to mix into one overall ranking though.
1. 3DS
2. DS
3. GB(C)
4. GBA