The “https://packagist.org/packages.json” file could not be downloaded
$ sudo composer create-project xxxxx xxxxx
[Composer\Downloader\TransportException]
The "https://packagist.org/packages.json" file could not be downloaded: Failed to enable crypto
failed to open stream: operation failed
create-project [-s|--stability STABILITY] [--prefer-source] [--prefer-dist] [--repository REPOSITORY] [--repository-url REPOSITORY-URL] [--dev] [--no-dev] [--no-plugins] [--no-custom-installers] [--no-scripts] [--no-progress] [--keep-vcs] [--no-install] [--ignore-platform-reqs] [--] [<package>] [<directory>] [<version>]
我的情况是使用如下命令解决了
unset http_proxy
unset https_proxy
后续又遇到慢的问题,使用这个解决
composer config -g repo.packagist composer https://packagist.phpcomposer.com