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

The solution of composer error Could not find package

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

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

This article is to share with you about the solutions to composer error Could not find package. The editor thought it was very practical, so I shared it with you as a reference. Let's follow the editor and have a look.

I am gradually submitting my own framework to GITHUB, which is really not an easy task.

Register an account on 1.GITHUB and open the project

two。 Local GIT clone come down.

3. Modify the code locally and submit it back to GITHUB

4. Register an account on Packagist and synchronize the project to Packagist

5. Using Composer to update the code to another local test project, there is a problem

Always prompting

[InvalidArgumentException] Could not find a version of package ice-php/test-repository matching your minimum-stability (stable). Require it with an explicit version constraint allowing its desired stability.

According to this hint, my various modifications have something related to the version, but still to no avail.

Then I took the version number Update, that is,

Composer require ice-php/test-repository: ^ 1.0

The prompt is:

[InvalidArgumentException] Could not find package ice-php/test-repository. Did you mean this? Ice-php/test-repository

At this point, I began to doubt the Composer source. Previously, I changed the code source to a Chinese mirror server.

Https://packagist.phpcomposer.com

Remove, still

After getting enough sleep today, I feel refreshed, so I wonder what this value used to be. Can't find it on the Internet. Try to change it to the address of Packagist https://packagist.org.

Then run composer, stuck still, a look at this has a chance.

After a long wait, the specified version was updated successfully.

Try again without the version specified, also successful.

Note: my current computer is over the wall, the above operation is successful.

1. The wall.

2. P use Baidu that you don't have.

Thank you for reading! On the composer error Could not find package solutions to share here, I hope the above content can be of some help to you, so that you can learn more knowledge. If you think the article is good, you can share it and let more people see it.

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