2017-09-22 58 views
0

每當我安裝laravel,我得到這個錯誤。我的系統是否有問題,或者是否存在阻礙安裝的問題。 我使用的是PHP 5.6.30-7 + deb.sury.org〜trusty + 1(cli)的ubuntu。安裝Laravel或流明錯誤

[Composer\Downloader\TransportException]                       
    The "https://packagist.org/packages.json" file could not be downloaded: SSL operation failed with code 1. OpenSSL Error messages: 
    error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed             
    Failed to enable crypto                            
    failed to open stream: operation failed 

回答

0

作曲家必須使用代理。

臨客這裏:PHP Composer behind http proxyComposer cannot download files

它會像:

export HTTP_PROXY="http://my-corp-proxy.mcdonalds"

然後:

php composer.phar install 
+0

是它的安全運行從辦公室這樣的命令或我需要與我的IT負責人交談。 –

+0

不,他們是安全的。來源是真實的。 – Gammer

+0

你解決了你的問題嗎? – Gammer