Plugin installation failed, rolling back; Could not delete

hi,
this post is for those who’re following this guide: Getting Started: Windows (WSL) | Roots Documentation

In case you’re getting Composer error at TASK [wordpress-install : Install Dependencies with Composer] ****************** like this:
Plugin installation failed, rolling back

then try this workaround:

  1. replace this
    “composer/installers”: “^1.4”,
    with this
    “composer/installers”: “dev-master#v1.7.0”,
    at your /roots-example-project.com/site/composer.json

  2. run composer update

  3. try vagrant up again

I spent 3 days on this issue, I was so angry that my previous post got unlisted by admins lol.
source: Plugin installation failed, rolling back; Could not delete · Issue #430 · composer/installers · GitHub

1 Like