Emulators for the N64 are widely available and legal to download — the games themselves are the problem, since downloading ROMs of titles you don't own is copyright infringement.
If you want to play the originals legitimately, look at Nintendo's own re-releases and the N64 library on Nintendo Switch Online, or track down cartridges and dump them yourself.