
Part 1
The var/generation directory shoud:
- be present (the requirement is a bug, because the
var/generationdirectory is autogenerated) - be readable
- be executable
Part 2
If you are on Windows, you need an additional patch.

The var/generation directory shoud:
var/generation directory is autogenerated)If you are on Windows, you need an additional patch.
See also:
\Magento\Framework\Setup\FilePermissions::checkDirectoryPermissionForCLIUser() fails on Windows (wrongly detects whether a directory is executable)