Home > Development Tools > composer > What should I do if I get the error message 'There is no such remote composer' when using composer?

What should I do if I get the error message 'There is no such remote composer' when using composer?

藏色散人
Release: 2021-03-25 17:28:11
forward
2389 people have browsed it

The following tutorial column of composer will introduce to you what to do if you get an error message "There is no such remote composer" when using composer. I hope it will be helpful to friends in need!

What should I do if I get the error message 'There is no such remote composer' when using composer?

Specific error problem:

What should I do if I get the error message There is no such remote composer when using composer?

But I manually called git clone those addresses All can be cloned...

Solution:

After looking through composer's issues on github, I found a solution, because I downloaded it from the symfony official website I downloaded version 2.1.4 with vendor, and then decompressed it and executed composer update. However, I encountered this error. The reply on github said:

justin-amt commented 4 months ago

I have exactly same problem on php composer.phar update

[RuntimeException]
Failed to clone http://github.com/fabpot/Twig.git via git, https and http protocols, aborting.

- git://github.com/fabpot/Twig.git
fatal: No such remote 'composer'

- https://github.com/fabpot/Twig.git
fatal: No such remote 'composer'

- http://github.com/fabpot/Twig.git
fatal: No such remote 'composer'

How to correct it ?

Seldaek commented 4 months ago
@justinamt that looks like you have an outdated vendor dir (from a very old composer.phar) just delete the vendor/* and run install or update again to get them up to date.

from https://github.com/composer/composer/issues/613

So I mv the vendor folder, then executed composer install and found that it could be downloaded normally.

The above is the detailed content of What should I do if I get the error message 'There is no such remote composer' when using composer?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:segmentfault.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template