[英]The command "composer require barryvdh/laravel-dompdf" always gets an error
I am trying to run this command: composer require barryvdh/laravel-dompdf
我正在尝试运行此命令:
composer require barryvdh/laravel-dompdf
And I get this in my cmd:我在我的 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
And even on top of that, my project stopped working and shows:甚至最重要的是,我的项目停止工作并显示:
This error that I've never seen before这个我以前从未见过的错误
I tried everything that I found on inte.net, clear cache, update composer and still I get the same kind of error, I am using Laravel 9 version.我尝试了我在 inte.net 上找到的所有东西,清除缓存,更新作曲家,但我仍然遇到同样的错误,我使用的是 Laravel 9 版本。 I'm desperate please help
我很绝望请帮忙
Step 1: Delete the cache
folder and recreate again in bootstrap
directory.第 1 步:删除
cache
文件夹并在bootstrap
目录中重新创建。
step 2: run the command php artisan cache:clear
第 2 步:运行命令
php artisan cache:clear
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.