3

プライベート GitHub リポジトリからパッケージをインストールできるように、PHP 依存関係マネージャーComposerについて理解しようとしています。

テストリポジトリにプライベート リポジトリを使用する方法に関する指示に従いましたが、次のような奇妙な406 エラーが発生します。

要求されたリソースは、要求で送信された Accept ヘッダーに従って受け入れられないコンテンツを生成することしかできません。

エラーメッセージは次のとおりです。

$ composer install -n
Loading composer repositories with package information
Installing dependencies (including require-dev)
  - Installing growdigital/access (0.0.3)
    Downloading: connection...Failed to download growdigital/access from dist: The "https://github.com/growdigital/access/archive/0.0.3.zip" file could not be downloaded (HTTP/1.1 406 Not Acceptable)
Now trying to download from source
  - Installing growdigital/access (0.0.3)
Cloning 464c3a3a580ded3fdaf43a246388b6de33fbac89

そのため、zip ではなくソースからインストールする限り、機能しています。私の質問は、一体どうすれば 406 エラーに対処できるのでしょうか? composer を変更するために必要なことはありますか?

4

0 に答える 0