命令 "composer require barryvdh/laravel-dompdf" 总是出错
The command "composer require barryvdh/laravel-dompdf" always gets an error
我正在尝试 运行 这个命令:composer require barryvdh/laravel-dompdf
我在 cmd 中得到了这个:
Using version ^1.0 for barryvdh/laravel-dompdf
./composer.json has been updated
Running composer update barryvdh/laravel-dompdf
Loading composer repositories with package information
Updating dependencies
Lock file operations: 5 installs, 0 updates, 0 removals
- Locking barryvdh/laravel-dompdf (v1.0.0)
- Locking dompdf/dompdf (v1.2.2)
- Locking phenx/php-font-lib (0.5.4)
- Locking phenx/php-svg-lib (0.4.1)
- Locking sabberworm/php-css-parser (8.4.0)
Writing lock file
Installing dependencies from lock file (including require-dev)
Package operations: 5 installs, 0 updates, 0 removals
- Installing sabberworm/php-css-parser (8.4.0): Extracting archive
- Installing phenx/php-svg-lib (0.4.1): Extracting archive
- Installing phenx/php-font-lib (0.5.4): Extracting archive
- Installing dompdf/dompdf (v1.2.2): Extracting archive
- Installing barryvdh/laravel-dompdf (v1.0.0): Extracting archive
3 package suggestions were added by new dependencies, use `composer suggest` to see details.
Generating optimized autoload files
Illuminate\Foundation\ComposerScripts::postAutoloadDump
@php artisan package:discover --ansi
In PackageManifest.php line 178:
The C:\xampp\htdocs\Proyectos\Monitor\bootstrap\cache directory must be present and writable.
Script @php artisan package:discover --ansi handling the post-autoload-dump event returned with error code 1
甚至最重要的是,我的项目停止工作并显示:
这个我以前从未见过的错误
我尝试了我在互联网上找到的所有方法,清除缓存,更新作曲家,但我仍然遇到同样的错误,我使用的是 Laravel 9 版本。我很绝望请帮忙
第 1 步:删除 cache
文件夹并在 bootstrap
目录中重新创建。
第 2 步:运行 命令 php artisan cache:clear
我正在尝试 运行 这个命令:composer require barryvdh/laravel-dompdf
我在 cmd 中得到了这个:
Using version ^1.0 for barryvdh/laravel-dompdf
./composer.json has been updated
Running composer update barryvdh/laravel-dompdf
Loading composer repositories with package information
Updating dependencies
Lock file operations: 5 installs, 0 updates, 0 removals
- Locking barryvdh/laravel-dompdf (v1.0.0)
- Locking dompdf/dompdf (v1.2.2)
- Locking phenx/php-font-lib (0.5.4)
- Locking phenx/php-svg-lib (0.4.1)
- Locking sabberworm/php-css-parser (8.4.0)
Writing lock file
Installing dependencies from lock file (including require-dev)
Package operations: 5 installs, 0 updates, 0 removals
- Installing sabberworm/php-css-parser (8.4.0): Extracting archive
- Installing phenx/php-svg-lib (0.4.1): Extracting archive
- Installing phenx/php-font-lib (0.5.4): Extracting archive
- Installing dompdf/dompdf (v1.2.2): Extracting archive
- Installing barryvdh/laravel-dompdf (v1.0.0): Extracting archive
3 package suggestions were added by new dependencies, use `composer suggest` to see details.
Generating optimized autoload files
Illuminate\Foundation\ComposerScripts::postAutoloadDump
@php artisan package:discover --ansi
In PackageManifest.php line 178:
The C:\xampp\htdocs\Proyectos\Monitor\bootstrap\cache directory must be present and writable.
Script @php artisan package:discover --ansi handling the post-autoload-dump event returned with error code 1
甚至最重要的是,我的项目停止工作并显示:
这个我以前从未见过的错误
我尝试了我在互联网上找到的所有方法,清除缓存,更新作曲家,但我仍然遇到同样的错误,我使用的是 Laravel 9 版本。我很绝望请帮忙
第 1 步:删除 cache
文件夹并在 bootstrap
目录中重新创建。
第 2 步:运行 命令 php artisan cache:clear