更新:HHH   时间:2023-1-7


composer require aws/aws-sdk-php时候报如下错!

[Composer\Downloader\TransportException]
The "https://packagist.laravel-china.org/p/aws/aws-sdk-php%249b148b0156ebe4ff27b810e1b682b39ba578f8a895daa3646554e0297d96e09d.json" file could not be downloaded: Peer certifica
te CN=*.phphub.org' did not match expected CN=packagist.laravel-china.org'
Failed to enable crypto
failed to open stream: operation failed

遇到这样的问题!
怎么解决?更换镜像!

composer config -g repo.packagist composer  https://mirrors.aliyun.com/composer/
composer require aws/aws-sdk-php
返回web开发教程...