this is probably because seleniuv-webdriver changed their internal name from 'alertBehavior' to 'unhandledPromptBehavior'
you should instead create Capabilities object directly, then call setAlertBehavior(), or if constructing a config object, use the import Capability.UNHANDLED_PROMPT_BEHAVIOR as the key (from selenium-webdriver/lib/capabilities)