I’ve no idea why you’d want to stay near Pompeii G-G. It’s a fascinating visit but is literally right on the doorstep of Naples, which as DO says, is a real dump. Sorrento is a good 45-60 minutes away by car and much of it single lane, albeit with excellent views.
The train between the two (which stops at Pompeii) is erm… interesting and absolutely rife with pick pockets.
Sorrento is lovely and offers easy excursion access to Capri, Positano, Amalfi etc. The only minor problem with staying in Sorrento (aside from cost of hotels) is that you literally travel straight past Pompeii to get there and then spend an hour each way going to visit it from Sorrento later in your break.
I cheated and arranged for a driver to pick us up from Naples airport, drive us to Sorrento but stop at Pompeii on the way and him to wait in the car with our cases while we did the 4 (?) hour tour of Pompeii, then continue on in the car to Sorrento afterwards. It’s a great way to do it and saves practically a whole day of travelling but of course is more expensive than other ways.