The "https://packagist.laravel-china.org/packag..." file could not be downloaded (HTTP/1.1 405 Not Allowed)
https://packagist.laravel-china.org could not be fully loaded, package information was loaded from the local cache and may be out of date
[Composer\Downloader\TransportException]
The "https://packagist.laravel-china.org/p/tymo..." file could not be downloaded (HTTP/1.1 405 Not
Allowed)
出現上述錯誤資訊是因為,composer全域性下載換成中國映象的原因.
只需將下載源換會預設的就可以.可以使用下面命令修改 composer 配置資訊
composer config -g repo.packagist composer https://packagist.phpcomposer.com
正常修改過後,再使用composer執行之前的操作是沒有問題的,如果仍然出現上述錯誤,是代理上網的問題,可以查詢代理上網相關資料設定
本作品採用《CC 協議》,轉載必須註明作者和本文連結