Clear composer cache

I work with my own repositories within my composer.json. When I added a new repository, I run into the following error:

"The requested package vendor/mypackage could not be found in any version, there may be a typo in the package name".

I checked the naming multiple times and also things like the minimum-stability. In the end what solved it was to clean the composer cache.

$ composer clearcache

You can also use clear-cache which is an alias for clearcache.

comments powered by Disqus