# 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:** 4 of 13

## Post 4 by @Twansparant — 2021-02-06T13:19:28Z

Here’s what I did in the end:

1. Update **Composer** locally to version 2+
2. Remove the lines from **/group\_vars/all/main.yml** :

```
composer_global_packages:
{ name: hirak/prestissimo }
```

1. SSH into your **vagrant box** and update Composer to version 2:

`composer self-update` or:  
`composer self-update --2`

1. Remove your `site/composer.lock` file.
2. Make sure you update the following dependencies in your `site/composer.json`:

```
"composer/installers": "^1.9",
"vlucas/phpdotenv": "^5.2"
```

and make sure you’ve got at least Bedrock version **1.14.3** or higher.

1. Run `rm -rf vendor && composer install` from the site dir and push your git commits.

2. Check your theme’s `composer.json` and update:

```
"composer/installers": "^1.9"
```

1. **SSH** into your remote server and check for the current composer version: `composer --version`.  
If neccessary update to version 2+:

`composer self-update` or:  
`composer self-update --2`

1. Deploy your changes to the remote server.

This worked for me for at least 8 running projects!

---

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