laravel5 composer需要pacage show zlib_decode():每次都有数据错误
D:wampwwwlaravel-v5.1.1>composer require "michelf/php-markdown:1.4.*"
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Failed to decode response: zlib_decode(): data error
Retrying with degraded mode, check https://getcomposer.org/doc/articles/troubleshooting.md#degraded-mode for more info
有人知道发生了什么事吗?
尝试运行此命令
composer config --global repositories.packagist.allow_ssl_downgrade false
然后运行
composer install
我为这个包使用了composer require "michelf/php-markdown:1.4.*"
,它成功了。
也许试试composer clear-cache
?