#author("2025-03-11T15:37:53+09:00","default:pitablog","pitablog") #author("2025-03-11T16:12:28+09:00","default:pitablog","pitablog") * おい、Composer、どうしちまったんだよ! [#eb13e2c4] #splitbody{{ LEFT: &tag(情報技術,PHP,Composer,Laravel); #split RIGHT:&size(13){投稿日: 2025-03-11 (火)}; }} #bcontents ** 最新のLaravelのインストールができない! [#z08d8673] はい、以下エラーログです。 #pre{{ - Installing phpunit/php-code-coverage (11.0.9): Extracting archive - Installing phar-io/version (3.2.1): Extracting archive - Installing phar-io/manifest (2.0.4): Extracting archive - Installing myclabs/deep-copy (1.13.0): Extracting archive - Installing phpunit/phpunit (11.5.12): Extracting archive 75/110 [===================>--------] 68% Install of fakerphp/faker failed Install of nesbot/carbon failed Install of league/commonmark failed Install of laravel/framework failed Install of nikic/php-parser failed Install of psy/psysh failed Install of hamcrest/hamcrest-php failed Install of mockery/mockery failed Install of nunomaduro/collision failed Install of staabm/side-effects-detector failed The following exception is caused by a process timeout Check https://getcomposer.org/doc/06-config.md#process-timeout for details In Process.php line 1205: The process "'/usr/bin/unzip' '-qq' '/var/www/html/vendor/composer/tmp-66a0b2763cea71fa98eb7d070e81d14b.zip' '-d' '/var/www/html/vendor/composer/8394fa14'" exceeded the timeout of 300 seconds. }} #blink(https://qiita.com/yassyjk/items/a87dfb19bb0f01f31d11#%E3%82%A8%E3%83%A9%E3%83%BC%E3%83%A1%E3%83%83%E3%82%BB%E3%83%BC%E3%82%B8) 上記のyassyjkさんの記事でも同様なエラーが発生しているように見られます。 ** で、これの解決法は? [#j995cec1] まず、これの原因は「タイムアウト」です。 つまり、インストールに時間がかかり、一定時間経つとComposerは終了する仕様があるよう。 標準ではタイムアウトするまでの時間は5分(300秒)と設定されている模様です。 なので10分(600秒)に変更してしまいましょう。 export COMPOSER_PROCESS_TIMEOUT=600 上記を実行することでComposerの処理時間を引き上げることができます。 600でも無理なら900、1200と上げていきましょう。 *** 参考記事: composerが300秒でタイムアウトしてしまう [#y6661693] #blink(https://www.ninton.co.jp/archives/6314) ** コメント [#e1eae827] #pctrlcmt &size(10){キーワード: 情報技術, PHP, Laravel, Composer, タイムアウト, timeout, エラー};
| Pitan |
![]() |
| プログラミングや音MADやらが趣味 |
[もっと見る]
[もっと見る]