Some of the packages that are required for afex to run may have been missing or out of date on your machine. When you specify dependencies = TRUE, R downloads and installs all of these necessary pacakges. You can see the list of packages that afex requires in the "Depends" and "Imports" section of the package overview page.
Also, if your question has been answered, then please mark the post that answered it as correct for future visitors. The link below will explain how to select a solution: