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

前端 未结 5 871
无人共我
无人共我 2020-12-24 04:10

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

     composer self-update
     Updating to ve         


        
5条回答
  •  失恋的感觉
    2020-12-24 05:09

    I've just experienced the same issue on my Windows machine. I'd just downloaded and installed Composer from https://getcomposer.org/download/ and when I tried to run php composer-setup.php it failed with "SHA384 is not supported by your openssl extension".

    The solution that worked for me was to perform the command line install (documented on the same site). Visit https://getcomposer.org/download/ to get the latest SHA.

    php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
    php -r "if (hash_file('sha384', 'composer-setup.php') === 'c5b9b6d368201a9db6f74e2611495f369991b72d9c8cbd3ffbc63edff210eb73d46ffbfce88669ad33695ef77dc76976') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
    php composer-setup.php
    php -r "unlink('composer-setup.php');"
    

提交回复
热议问题