Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

AbuHenaM's avatar

Compose run without cache

Hi if I run composer install or update it run from the local cache most of the time. How can run composer without cache.

1 like
2 replies
tisuchi's avatar
tisuchi
Best Answer
Level 70

@abuhenam

If I understand you correctly, there could be few ways to do that-

You just pass a flag --no-cache option like that.

composer install --no-cache

Alternatively, you can simply run to clear your cache and then run either composer install or update.

composer clearcache
8 likes

Please or to participate in this conversation.