Squealing coming from my engine

nissan
pathfinder

#1

Squealing coming from the engine. Sometimes quits when you rev the engine, shutting the heater fan off or shift into fourth gear, and finally sometimes when it warms up. What would cause this squealing?