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!
Specific error problem:
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!