We can ignore the cache for Composer for a single command by prefixing it with
COMPOSER_CACHE_DIR=/tmp/foo composer install
Typically, we shouldn’t have to do this but if we’re trying to recreate problems someone else is having it can be helpful.
Deleting Composer’s Cache
Alternatively, we can delete composer’s cache entirely with
rm -rf $(composer config cache-dir)