The best way to prevent chickenpox is to get vaccinated. Children, adolescents and adults should have 2 doses of the chickenpox vaccine.