# Deploy failed - Composer

**URL:** https://discourse.roots.io/t/deploy-failed-composer/20026
**Category:** bedrock
**Tags:** deploys
**Created:** 2021-02-06T11:02:31Z
**Posts:** 13
**Showing post:** 7 of 13

## Post 7 by @mattia — 2021-02-06T17:57:31Z

yes only on deploy, on local is all ok.

yes I have done that, delete composer.lock and `rm -rf vendor && composer install`, but no luck.

what else I can try to do?

in the meantime, I am trying with a brand new trellis/bedrock/sage project, but with composer 1 (because I think that I am getting mad with composer 2).

is there a way in trellis to force Composer 1.x to be installed instead of composer 2?

i saw this [topic](https://discourse.roots.io/t/trellis-1-7-0-with-composer-1-x/19766/10) between you and @JordanC26, but it is not clear if at the end this workaround worked or not.

---

_[View the full topic](https://discourse.roots.io/t/deploy-failed-composer/20026)._
