Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What to do if there are problems in the process of updating composer?

2025-02-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/01 Report--

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!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report