I have installed Drupal 8 on Ubuntu. All works well, but I cannot create a new module using Drupal Console.

When I run `drupal generate:module`, I get the following error message.

> [InvalidArgumentException]  
> Module path "/var/www/html/maryem/modules/custom" is invalid. You need to provide a valid path.

Why? How can I avoid that error message?