我是Drupal 8的新手。在Mac上从Drupal gt创建自定义主题时,出现错误。
Enter the new theme name []:
> test
Enter the theme machine name [test]:
> test
Enter the theme Path [themes/custom]:
> themes/custom
Enter theme description [My Awesome theme]:
> my first theme
Enter package name [Other]:
> Other
Enter Drupal Core version [8.x]:
> 8.x
Base theme (i.e. classy, stable) [false]:
> classy
Enter the global styling library name [global-styling]:
> global-styling
Do you want to add another library? (yes/no) [yes]:
> no
Do you want to generate the theme regions? (yes/no) [yes]:
> no
Do you want to generate the theme breakpoints? (yes/no) [yes]:
> no
Do you want proceed with the operation? (yes/no) [yes]:
> no
>[WARNING] The generation was cancelled and
> [ERROR] <em class="placeholder">Notice</em>: Trying to get property of non-object in <em
class="placeholder">system_sort_modules_by_info_name()</em> (line <em class="placeholder">1090</em> of <em
class="placeholder">core/modules/system/system.module</em>). <pre
class="backtrace">system_sort_modules_by_info_name(Object, '')
uasort(Array, 'system_sort_modules_by_info_name') (Line: 330)
Drupal\Console\Command\Generate\ThemeCommand->interact(Object, Object) (Line: 236)
Symfony\Component\Console\Command\Command->run(Object, Object) (Line: 964)
Symfony\Component\Console\Application->doRunCommand(Object, Object, Object) (Line: 248)
Symfony\Component\Console\Application->doRun(Object, Object) (Line: 185)
Drupal\Console\Core\Application->doRun(Object, Object) (Line: 64)
Drupal\Console\Application->doRun(Object, Object) (Line: 148)
Symfony\Component\Console\Application->run() (Line: 89)
require('/Users/kailinchang/Sites/drupal8/vendor/drupal/console/bin/drupal.php') (Line: 4)
</pre>
我无法弄清楚这个错误。有人可以帮忙吗?