Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SHA384 is not supported by your openssl extension, could not verify the phar file integrity

I get the error when i run composer self-update on Windows 10
Here is the full error message

     composer self-update      Updating to version 1.8.4 (stable channel).      Downloading (100%)        [RuntimeException]     SHA384 is not supported by your openssl extension, could not verify the phar file integrity 

I am running PHP 7.3.2 What could be the problem?

like image 531
ovicko Avatar asked Mar 04 '19 12:03

ovicko


1 Answers

Remove Your older versions and install the latest version of Composer,

Remove Your older version: sudo rm -f /usr/local/bin/composer

Download the installer: sudo curl -s https://getcomposer.org/installer | php

Move the composer.phar file: sudo mv composer.phar /usr/local/bin/composer

like image 119
vipinlalrv Avatar answered Oct 04 '22 15:10

vipinlalrv