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

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

 

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

上一篇:ElasticSearch3:RestAPI


下一篇:C# 使用url读取 网页的标题内容