It starts and runs fine for a few minutes, then starts missing and quits. on 2000 Nissan Xterra

Every time I start the Xterra. All diagnostic codes come up.

1 answer 1 comment
what are the codes? post so we can adv
I can't remember the codes, but I changed the Crank Position Sensor (pain), Cam Position Sensor, Knock Sensor,and etc.