Check for a blown alternator fuse or fuseable link wire going to alternator.
hate to say it, but an alternator can be bad right out of the box. I would have it tested. actually have had this happen.
True...happen to me also...more than once...
Looking for a Used Wrangler in your area?
CarGurus has 18,484 nationwide Wrangler listings starting at $2,500.
Search Jeep Wrangler Questions
Are you a UK consumer? CarGurus now has a discussion forum in the UK.
Jeep Wrangler Experts