我正在使用Windows 10并composer已安装.当我尝试laravel使用此命令全局安装安装程序时:
composer global require laravel/installer
[Composer\Downloader\TransportException]
The "https://repo.packagist.org/packages.json" file could not be downloaded:
failed to open stream: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
Run Code Online (Sandbox Code Playgroud)
这意味着包没有下载.我没有使用任何代理服务器.Composer诊断结果如下:
Checking platform settings: OK
Checking git settings: OK
Checking http connectivity to packagist:
[Composer\Downloader\TransportException] The "http://repo.packagist.org/packages.json" file could not be downloaded: failed to open stream: A connection attempt failed …Run Code Online (Sandbox Code Playgroud)