A bad diode in an alternator can cause this too. I have one sitting on my shelf as my spare , it charges just fine , just drives me nuts with the needle bouncing.
I have put it on about 3 different times over the years," oh yeah , I remember this alt"!!!!
Change to a new one and poof, no bouncing needle!