composer使用

有時候composer install/update的時候會報錯:laravel

好比安裝laravel5時會報錯以下:git

[Composer\Downloader\TransportException]                                                                                                                          
  Your configuration does not allow connection to http://ooxx/xxoo.git. See https://getcomposer.org/doc/06-config.md#secure-http for details.composer

 

解決方法是設置一個本地或全局的composer配置:code

composer config secure-http falseget

全局設置:it

composer config -g secure-http falseio

 

2. 若是還有zlib_decode(): data error 配置

則執行下composer self-update以後再執行安裝就好啦date

相關文章
相關標籤/搜索