What to do if there are problems in the process of updating composer?
This article mainly shows you "what to do when you encounter problems in the process of composer update", which is easy to understand and clear, hoping to help you solve your doubts. Let the editor lead you to study and learn "what to do when you encounter problems in the process of composer update".
The process of updating composer
My local composer has not been updated since May 18. Now that you are using composer to indicate that 2.0 has been released, update it!
According to established thinking, composer supports command updates, that is, using the
Composer self-update
But it gave me a hint.
`SHA384 is not supported by your openssl extension, could not verify the phar file integrity`
Looking at the hint, it is because there is no way to verify the legitimacy of phar, so go to the official documents to find a way to deal with it.
Download the latest installation package:
Php-r "copy ('https://getcomposer.org/installer',' composer-setup.php');"
Check the hash value of the downloaded file:
Php-r "if (hash_file ('sha384',' composer-setup.php') = = '756890a4488ce9024fc62c56153228907f1545c228516cbf63f885e036d37e9a59d27d63f46af1d4d07ee0f76181c7d3') {echo' Installer verified';} else {echo 'Installer corrupt'; unlink (' composer-setup.php');} echo PHP_EOL;"
Confirm that the installation is successful:
Php composer-setup.php
Remove the link:
Php-r "unlink ('composer-setup.php');"
Move to the environment:
Mv. / composer-setup.php / usr/local/bin/composer above are all the contents of the article "what to do if you encounter problems in the process of composer update". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!