QQ扫一扫联系
CMS系统,使用命令行安装方式,执行php artisan module:module-install-all时报错There are no commands defined in the "module" namespace
PHP版本:php8.1.29、
系统版本: macos Sonoma 14.4.1
模块版本:ModStartCMS Laravel9
1 git clone https://gitee.com/modstart/ModStartCMS_Laravel9.git
2 复制env.example并配置数据库
3 执行php artisan migrate
4 执行php artisan module:module-install-all报错
[2024-10-11 14:05:21] product.ERROR: There are no commands defined in the "module" namespace. Did you mean this? model {"exception":"[object] (Symfony\\Component\\Console\\Exception\\NamespaceNotFoundException(code: 0): There are no commands defined in the \"module\" namespace. Did you mean this? model at /Volumes/Code/ModStartCMS_Laravel9/vendor/symfony/console/Application.php:657) [stacktrace] #0 /Volumes/Code/ModStartCMS_Laravel9/vendor/symfony/console/Application.php(708): Symfony\\Component\\Console\\Application->findNamespace('module') #1 /Volumes/Code/ModStartCMS_Laravel9/vendor/symfony/console/Application.php(262): Symfony\\Component\\Console\\Application->find('module:module-i...') #2 /Volumes/Code/ModStartCMS_Laravel9/vendor/symfony/console/Application.php(174): Symfony\\Component\\Console\\Application->doRun(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput)) #3 /Volumes/Code/ModStartCMS_Laravel9/vendor/laravel/framework/src/Illuminate/Console/Application.php(102): Symfony\\Component\\Console\\Application->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput)) #4 /Volumes/Code/ModStartCMS_Laravel9/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(155): Illuminate\\Console\\Application->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput)) #5 /Volumes/Code/ModStartCMS_Laravel9/artisan(47): Illuminate\\Foundation\\Console\\Kernel->handle(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput)) #6 {main} "}
请补全一下报错的日志信息
@ModStart: 已补充
php artisan modstart:module-install-all
命令错了