1
我試圖在工作中安裝Laravel,但我無法做到這一點,我知道可能存在代理問題,因爲存在一些限制,但我不確定,這是我運行時得到的錯誤消息安裝在終端無法安裝laravel
我運行此命令
composer create-project --prefer-dist laravel/laravel testproject
,我得到這個錯誤消息
The "https://packagist.org/packages.json" file could not be downloaded: failed to open stream: Operation timed out
Retrying with degraded mode, check https://getcomposer.org/doc/articles/troubleshooting.md#degraded-mode for more info
[Composer\Downloader\TransportException]
The "https://packagist.org/packages.json" file could not be downloaded: failed to open stream: No route to host
什麼想法?
謝謝
時出現此錯誤最常見的問題是因爲你的背後的代理。您可以通過在終端執行'sudo networksetup -getwebproxy'來檢查您是否在代理的後面。 –