0

这是我的 statamic 2 项目。我不确定这个错误的根源。当我运行“php please”命令时,我得到了驱动程序不支持的错误,如您在所附照片中所见。

php请命令结果

php请命令结果

运行命令后,我还附上了错误日志:-

[2021-02-02 15:18:44] dev.ERROR: InvalidArgumentException: Driver [] not supported. in C:\MAMP\htdocs\statamic\vendor\laravel\framework\src\Illuminate\Filesystem\FilesystemManager.php:109
    Stack trace: 
    #0 C:\MAMP\htdocs\statamic\vendor\laravel\framework\src\Illuminate\Filesystem\FilesystemManager.php(85): Illuminate\Filesystem\FilesystemManager->resolve('local')
    #1 C:\MAMP\htdocs\statamic\vendor\laravel\framework\src\Illuminate\Filesystem\FilesystemManager.php(74): Illuminate\Filesystem\FilesystemManager->get('local')
    #2 C:\MAMP\htdocs\statamic\core\API\Folder.php(38): Illuminate\Filesystem\FilesystemManager->disk('local')
    #3 C:\MAMP\htdocs\statamic\core\API\Folder.php(50): Statamic\API\Folder::disk()
    #4 C:\MAMP\htdocs\statamic\core\Providers\AddonServiceProvider.php(73): Statamic\API\Folder::__callStatic('getFolders', Array)
    #5 C:\MAMP\htdocs\statamic\core\Providers\AddonServiceProvider.php(35): Statamic\Providers\AddonServiceProvider->findAddonFiles()
    #6 C:\MAMP\htdocs\statamic\vendor\laravel\framework\src\Illuminate\Foundation\Application.php(531): Statamic\Providers\AddonServiceProvider->register()
    #7 C:\MAMP\htdocs\statamic\vendor\laravel\framework\src\Illuminate\Foundation\ProviderRepository.php(74): Illuminate\Foundation\Application->register(Object(Statamic\Providers\AddonServiceProvider))
    #8 C:\MAMP\htdocs\statamic\vendor\laravel\framework\src\Illuminate\Foundation\Application.php(507): Illuminate\Foundation\ProviderRepository->load(Array)
    #9 C:\MAMP\htdocs\statamic\vendor\laravel\framework\src\Illuminate\Foundation\Bootstrap\RegisterProviders.php(17): Illuminate\Foundation\Application->registerConfiguredProviders()
    #10 C:\MAMP\htdocs\statamic\vendor\laravel\framework\src\Illuminate\Foundation\Application.php(203): Illuminate\Foundation\Bootstrap\RegisterProviders->bootstrap(Object(Statamic\Application))
    #11 C:\MAMP\htdocs\statamic\vendor\laravel\framework\src\Illuminate\Foundation\Console\Kernel.php(208): Illuminate\Foundation\Application->bootstrapWith(Array)
    #12 C:\MAMP\htdocs\statamic\core\Console\Kernel.php(76): Illuminate\Foundation\Console\Kernel->bootstrap()
    #13 C:\MAMP\htdocs\statamic\vendor\laravel\framework\src\Illuminate\Foundation\Console\Kernel.php(105): Statamic\Console\Kernel->bootstrap()
    #14 C:\MAMP\htdocs\please(48): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
    #15 {main}  

附件是我检查 php、npm 和 statamic 版本的命令。都安装好了,为什么驱动不支持? php、npm 和静态

这是显示错误的调试模式

什么是解决方案,以便我可以使用“php please serve”命令为我的项目提供服务??

4

1 回答 1

0

如果运行php please cache:clear没有帮助,在我的情况下,删除 Statamic 引导缓存文件有帮助:

  • statamic/bootstrap/cache/config.php
  • statamic/bootstrap/cache/services.json
于 2021-03-18T04:01:13.437 回答