【发布时间】:2022-08-11 16:29:23
【问题描述】:
所以我刚刚在一个暂存站点上为我正在开发的应用程序运行了一个作曲家更新程序,在作曲家生成它的包清单后我得到了这个错误:
> @php artisan vendor:publish --tag=laravel-assets --ansi --force
League\\Flysystem\\UnableToWriteFile
Unable to write file at location: to://app.js.
at vendor/league/flysystem/src/UnableToWriteFile.php:24
20▕ private $reason;
21▕
22▕ public static function atLocation(string $location, string $reason = \'\', Throwable $previous = null): UnableToWriteFile
23▕ {
➜ 24▕ $e = new static(rtrim(\"Unable to write file at location: {$location}. {$reason}\"), 0, $previous);
25▕ $e->location = $location;
26▕ $e->reason = $reason;
27▕
28▕ return $e;
+24 vendor frames
25 artisan:37
Illuminate\\Foundation\\Console\\Kernel::handle()
Script @php artisan vendor:publish --tag=laravel-assets --ansi --force handling the post-update-cmd event returned with error code 1
我尝试使用php artisan storage:link 重建符号链接,这很成功,但仍然有相同的错误。我还运行了npm run dev,这也完成了并创建了 app.js(在 public/js/ 以及我用于该项目的其他 js 文件中)。我也刚刚跑了php artisan vendor:publish --tag=laravel-assets --ansi --force,正如我所料,我得到了同样的错误。
我认为这需要解决,以使一切正常工作,尽管它看起来是正确的?那么我需要做些什么来消除这个错误呢?
谢谢
标签: php laravel composer-php