LoginSignup
2
1

More than 5 years have passed since last update.

composer install/update/require等で404 not foundが出る場合

Posted at

どうやら、packagistがhttpsのみ受け付けるようになったようです。

従来からcomposerを使っている場合、
config.jsonのrepositories.packagist.urlに
http://packagist.org
が設定されていることがあります。

そうすると、

The "http://packagist.org/xxxx.json" file could not be downloaded (HTTP/1.1 404 Not Found)

のような出力が出て正常に処理が進みません。

そこで、
config.jsonファイルを修正するか、
composer config -g repositories.packagist composer https://packagist.org
上記コマンドで対応可能です。
※グローバル設定の場合

2
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
1