2002 Subaru WRX keeps dying

If the battery is shot, putting a new alternator in can kill the new alternator. I’ve seen it happen. I sent a PM about this, but there it is again just in case.

I’d have the alternator AND battery tested after recharging the battery and take it from there.