Was the battery fully charged when you installed the alternator? This can cause alternators to go bad if they are installed with low or dead battery. Same as if you check the alternator by taking the battery terminal off to see if the engine will stay running.