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.

Get Your Car Fixed at a RepairPal Certified Shop.
We certify shops based on expertise, quality work, and verified customer reviews
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.