我正在尝试安装vagrant-hostmanager插件,但是安装一直失败。以下是错误信息:
Applications/Vagrant/embedded/gems/gems/vagrant-1.3.5/plugins/commands/plugin/state_file.rb:47:in `save!': undefined method `sort!' for {}:Hash (NoMethodError)
还有其他人遇到过这个问题吗?
我正在尝试安装vagrant-hostmanager插件,但是安装一直失败。以下是错误信息:
Applications/Vagrant/embedded/gems/gems/vagrant-1.3.5/plugins/commands/plugin/state_file.rb:47:in `save!': undefined method `sort!' for {}:Hash (NoMethodError)
还有其他人遇到过这个问题吗?
$HOME/.vagrant.d
目录,问题就解决了。或者您可以更具选择性地找出问题所在:
~/.vagrant.d 06:08:58 516$ grep -R state_file gems/ gems//gems/bindler-0.1.3/lib/bindler/bend_vagrant.rb:require Vagrant.source_root.join('plugins/commands/plugin/state_file').to_s
所以在我的情况下是 "bindler"。
~/.vagrant.d 06:11:43 519$ vagrant plugin uninstall bindler Uninstalling the 'bindler' plugin... ~/.vagrant.d 06:12:39 520$ grep -R state_file gems/
全部完成!