On how new a truck?..the old 10-SI altenators had a plastic grommet on the housing ,the stud passes thru,and on the inside facing part of that grommet,it's round hole for the stud had a square recess in it the stud's "head" is secured in,so it cant spin when you go to tighten it..till it gets old and brittle and cracks..

...you must remove the rear half of the altenator to replace that grommet,and I dont know where you'd find a new one ,maybe a rebuilder shop would sell or give you one..or maybe some J-B weld or putty would "fix" it..
I have gotten by when I had that happen by not using a nylock nut on the stud,I used a regular non-locking nut with a star lockwasher,I was able to get it to tighten up with that nut because there was no nylon to cause enough "drag" on the threads to make the stud spin..
should the stud be able to touch ground due to the grommet being comprimised though,you will have a dead short and smoke the wire and the altenator possibly..100% going to happen..