configuration error directories not present
You can define it in settings.php like so:

$config_directories[CONFIG_SYNC_DIRECTORY] = '/../config/sync';


This sets the default sync directory outside my webroot.

CONFIG_SYNC_DIRECTORY is a constant defined for 'sync'.