Varying-Vagrant-Vagrants / VVV

An open source Vagrant configuration for developing with WordPress
https://varyingvagrantvagrants.org
MIT License
4.55k stars 849 forks source link

Q: Vagrant up failure #2685

Closed mcyzyk closed 10 months ago

mcyzyk commented 10 months ago
vagrant up
Vagrant failed to initialize at a very early stage:

The plugins failed to initialize correctly. This may be due to manual
modifications made within the Vagrant home directory. Vagrant can
attempt to automatically correct this issue by running:

  vagrant plugin repair

If Vagrant was recently updated, this error may be due to incompatible
versions of dependencies. To fix this problem please remove and re-install
all plugins. Vagrant can attempt to do this automatically by running:

  vagrant plugin expunge --reinstall

Or you may want to try updating the installed plugins to their latest
versions:

  vagrant plugin update

Error message given during initialization: Unable to resolve dependency: user requested 'vagrant-goodhosts (= 1.1.4)'

My vagrant-goodhosts plugin has been upgraded to the latest version 1.1.6, but no matter what I do Vagrant is looking for a specific version, the old version, 1.1.4.

Not sure how to remedy!

Mark

welcome[bot] commented 10 months ago

Thanks for opening your first issue here! Be sure to follow the issue template and include your OS/Vagrant/VVV versions! Don't forget you can get support in the VVV slack at https://varyingvagrantvagrants.org/docs/en-US/slack/

VVV
VVV Slack Workspace
Join the VVV Slack Workspace
tomjn commented 10 months ago

Add --local to the end of the command, the commands you ran affect globally installed vagrant plugins, but we use --local so you don't have to type out the names of all the plugins VVV needs.

Here's the issue and the PR to fix it by mentioning --local in the command over at vagrant but they've kind of stalled for some reason:

https://github.com/hashicorp/vagrant/pull/13030

https://github.com/hashicorp/vagrant/issues/13029

tomjn commented 10 months ago

The vagrant plugin expunge --reinstall command aka vagrant plugin expunge --reinstall --local