欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  IT编程

[Php] windows下使用composer出现SHA384 is not supported by your openssl extension

程序员文章站 2023-10-29 11:16:52
composer的版本太低了,需要更新composerwindows的安装使用https://getcomposer.org/Composer-Setup.exe报这个错Failed to decode zlib stream,把下面的composer.phar移动到php.exe所在目录,重试就好 ......

composer的版本太低了,需要更新composer
windows的安装使用
https://getcomposer.org/composer-setup.exe
报这个错failed to decode zlib stream,把下面的composer.phar移动到php.exe所在目录,重试就好了

linux下用下面的命令行重新安装,windows下也可以用
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
php -r "if (hash_file('sha384', 'composer-setup.php') === 'a5c698ffe4b8e849a443b120cd5ba38043260d5c4023dbf93e1558871f1f07f58274fc6f4c93bcfd858c6bd0775cd8d1') { echo 'installer verified'; } else { echo 'installer corrupt'; unlink('composer-setup.php'); } echo php_eol;"
php composer-setup.php
php -r "unlink('composer-setup.php');"
可以直接把目录下的composer.phar移动到/usr/bin/composer

 

php的版本也要比较高的版本

 [Php] windows下使用composer出现SHA384 is not supported by your openssl extension