所有 vagrant 命令都失败,并显示“Bundler,用于管理 Vagrant 插件的底层系统”

所有 vagrant 命令都失败,并显示“Bundler,用于管理 Vagrant 插件的底层系统”

每当我运行任何 vagrant 命令时,它都会失败,并显示以下错误消息,无论我是否在 vagrant 文件夹中或任何其他文件夹中。

有什么问题?

$ vagrant box list

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`.

答案1

我不太确定哪个文件导致了该问题,但我只是删除了我的~/.vagrant.d文件夹,问题就解决了。

我想您可能只需删除该~/.vagrant.d/plugins.json文件就行了,这样也许也能起到作用。

当然,您可以尝试重命名上述内容,而不是删除它们来自己尝试!

相关内容