Vagrant Windows 7上的CP950问题中的字节序列无效

Vagrant Windows 7上的CP950问题中的字节序列无效,vagrant,Vagrant,我的操作系统是windows 7 64位,当我键入vagrant box list C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.8.7/lib/vagrant/util/platform.rb:176:in `downcase': invalid byte sequence in CP950 (ArgumentError) from C:/HashiCorp/Vagrant/embedded/gems/gems/vagran

我的操作系统是windows 7 64位,当我键入
vagrant box list

C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.8.7/lib/vagrant/util/platform.rb:176:in `downcase': invalid byte sequence in CP950 (ArgumentError)
        from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.8.7/lib/vagrant/util/platform.rb:176:in `block (2 levels) in fs_real_path'
        from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.8.7/lib/vagrant/util/platform.rb:175:in `each'
        from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.8.7/lib/vagrant/util/platform.rb:175:in `block in fs_real_path'
        from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.8.7/lib/vagrant/util/platform.rb:174:in `each'
        from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.8.7/lib/vagrant/util/platform.rb:174:in `fs_real_path'
        from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.8.7/lib/vagrant/environment.rb:121:in `initialize'
        from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.8.7/bin/vagrant:180:in `new'
        from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.8.7/bin/vagrant:180:in `<main>'
C:/HashiCorp/Vagrant/embedded/gems/gems/Vagrant-1.8.7/lib/Vagrant/util/platform.rb:176:'downcase'中:CP950中的字节序列无效(ArgumentError)
来自C:/HashiCorp/Vagrant/embedded/gems/gems/Vagrant-1.8.7/lib/Vagrant/util/platform.rb:176:fs\u real\u path中的块(2级)
来自C:/HashiCorp/Vagrant/embedded/gems/gems/Vagrant-1.8.7/lib/Vagrant/util/platform.rb:175:in'each'
来自C:/HashiCorp/Vagrant/embedded/gems/gems/Vagrant-1.8.7/lib/Vagrant/util/platform.rb:175:in`block in fs_real_path'
来自C:/HashiCorp/Vagrant/embedded/gems/gems/Vagrant-1.8.7/lib/Vagrant/util/platform.rb:174:in'each'
来自C:/HashiCorp/Vagrant/embedded/gems/gems/Vagrant-1.8.7/lib/Vagrant/util/platform.rb:174:in'fs_real_path'
来自C:/HashiCorp/Vagrant/embedded/gems/gems/Vagrant-1.8.7/lib/Vagrant/environment.rb:121:in'initialize'
来自C:/HashiCorp/Vagrant/embedded/gems/gems/Vagrant-1.8.7/bin/Vagrant:180:在“新”中
来自C:/HashiCorp/Vagrant/embedded/gems/gems/Vagrant-1.8.7/bin/Vagrant:180:in`'

我使用vagrant很长时间了,当我将vagrant更新到1.8.7时会出现这种情况,但即使我将其降级到1.8.6,问题仍然存在,我尝试卸载并重新安装vagrant和VirtualBox,但仍然相同,不知道发生了什么。

你能试着在你的Vagrantfile上面添加
#编码:utf-8
吗?我想这与Vagrantfile无关,因为vagrant box list是一个全局命令OK我误读了,认为它是针对一个特定的vagrant文件的-这个问题与ruby和encoding有关你能尝试在你的vagrant文件上添加
#encoding:utf-8
吗?我想这与vagrant文件无关,因为vagrant box list是一个全局命令OK,我误读了它,认为它是针对一个特定的vagrant文件的——这个问题与ruby和编码有关