composer错误: Composer\Downloader\TransportException
4242阅读
0评论
0点赞
[Composer\Downloader\TransportException] The "http://packagist.org/packages.json" file could not be downloaded: failed to open stream: HTTP request failed! create-project [-s|--stability="..."] [--prefer-source] [--prefer-dist] [--repository-url="..."] [--dev] [--no-dev] [--n o-plugins] [--no-custom-installers] [--no-scripts] [--no-progress] [--keep-vcs] [--no-install] [--ignore-platform-reqs] [package] [directory] [version]
"config" : { "vendor-dir" : "packages", "secure-http": false }
全局配置(推荐)
composer config -l -g //切换到国内源 阿里 composer config -g repo.packagist composer https://mirrors.aliyun.com/composer/ composer config -g --unset repos.packagist
评论(0)
暂无评论