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.

Asked by for the 2000 Nissan Xterra
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.