In a bowl, combine the melted margarine or butter, soy sauce, five-spice powder, garlic powder, ginger and red pepper. Pour over nuts and stir to coat.
Cover. Cook on low setting for 2 hours.
Uncover and stir.
Turn to high-heat setting. Cover and continue cooking on high for 15 to 30 minutes.