当我尝试按照 http://laravel.com/docs/5.0/homestead 上的说明在 Homestead 5 盒子上"流浪"时,出现以下错误。我在代理后面,但是我相信我在 Vagrantfile 中正确设置了它。
我没有在本地安装作曲家(因为说明不包括这个),这是我需要做的事情吗?
有没有办法确认这不是我在 Vagrantfile 中的代理设置的问题?
==> default: [ComposerDownloaderTransportException]
==> default: The "https://getcomposer.org/version" file could not be downloaded: failed to open stream: Cannot connect to HTTPS server through proxy
==> default:
==> default:
==> default:
==> default: self-update [-r|--rollback] [--clean-backups] [--no-progress] [version]
The SSH command responded with a non-zero exit status. Vagrant
assumes that this means the command failed. The output for this command
should be in the log above. Please read the output to determine what
我遇到了同样的问题。我通过在 Windows 中的主机文件中添加一行带有 homestead 来解决它:
[ip used in homestead.yaml] homestead
希望这有帮助。找到类似的问题很容易,但很难找到答案。