Recently, I had to downgrade vagrant due to a project requirement.
However, when I reinstalled vagrant on Mac, I received a very strange error:
Bundler, the underlying system used to manage Vagrant plugins, is reporting that a plugin or its dependency can't be found. This is usually caused by manual tampering with the 'plugins.json' file in the Vagrant home directory. To fix this error, please remove that file and reinstall all your plugins using `vagrant plugin install`.
Later, I learned that not all vagrant directories were removed.
So the first thing I did was to remove
sudo rm -rf /opt/vagrant/
Unfortunately, that didn’t resolve the issue.
Hence, I continued to remove
rm -rf ~/.vagrant.d/
And that fixed the problem.
I was able to finish my reinstall of vagrant with no more hiccups.