昨天调试thinkphp6, 安装composer时,发现,安装失败,retry了2回还是这样。
一直提示失败。
The Composer installer script was not successful [exit code 1].
Script Output:
Failed to decode zlib stream
后来一想,好象是说,让把php.ini的参数改一下的。于是查了一下,果然。
解决方法
打开php.ini文件。
找到下面一行,
zlib.output_compression=Off
把off,修改成On,
然后回到还在安装中的composer,再点一下retry。
果然好使了!
特此记录。