Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/react-native/7.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Can';无法在Windows 7上使用Vagrant运行本地box VM-错误的URI错误_Vagrant_Vagrantfile - Fatal编程技术网

Can';无法在Windows 7上使用Vagrant运行本地box VM-错误的URI错误

Can';无法在Windows 7上使用Vagrant运行本地box VM-错误的URI错误,vagrant,vagrantfile,Vagrant,Vagrantfile,当我试图运行vagrant up命令时,我被卡住了。我将这个本地.box文件放在本地驱动器中,首先运行了vagrant init,然后添加了它。添加似乎进行得很顺利,但当我尝试运行如下所示的vagrant up时,它返回: C:/HashiCorp/Vagrant/embedded/lib/ruby/2.0.0/uri/common.rb:176:in'split':错误的uri(不是uri?):文件:C:/Users/burea1124/Projects/theirgoods/cuserure

当我试图运行
vagrant up
命令时,我被卡住了。我将这个本地.box文件放在本地驱动器中,首先运行了
vagrant init
,然后添加了它。添加似乎进行得很顺利,但当我尝试运行如下所示的
vagrant up
时,它返回:

C:/HashiCorp/Vagrant/embedded/lib/ruby/2.0.0/uri/common.rb:176:in'split':错误的uri(不是uri?):文件:C:/Users/burea1124/Projects/theirgoods/cuserure1124项目irgoods\u dev_vm.box(uri::InvalidURIError)

显然,看起来我应该在某个地方修复URI,但我不知道为什么一开始会这样。有人知道我该怎么解决这个问题吗

C:\Users\burea1124\Projects\theirgoods>vagrant框添加他们的货物 C:\Users\burea1124\Projects\theirgoods\theirgoods\u dev\u vm.box ==>框:为提供程序添加框“他们的货物”(v0): box:下载:file://C:/Users/burea1124/Projects/theirgoods/theirgoods\u dev\u vm.box 方框:进度:100%(速率:500M/s,预计剩余时间:-) ==>框:已成功为“virtualbox”添加框“theirgoods”(v0)

C:\Users\burea1124\Projects\theirgoods>vagrant up
带来 使用“virtualbox”提供程序启动计算机“默认”。。。 ==>默认值:框“CUSERUREA1124项目硬件硬件硬件硬件虚拟机.Box”不能为空 建立正在尝试查找并安装。。。 默认值:框提供程序:virtualbox 默认值:Box版本:>=0c:/HashiCorp/Vagrant/embedded/lib/ruby/2.0.0/uri/common.rb:176:in
split”:错误的URI(不是URI?):
文件:C:/Users/burea1124/Projects/theirgoods/cuserure1124 Projects-theirgoods-theirgoods\u-dev\u-vm.box
(URI::InvalidURIError)
来自C:/HashiCorp/Vagrant/embedded/lib/ruby/2.0.0/uri/common.rb:211:in
parse' 来自C:/HashiCorp/Vagrant/embedded/lib/ruby/2.0.0/uri/common.rb:747:in
parse'
来自C:/HashiCorp/Vagrant/embedded/gems/gems/Vagrant-1.6.3/lib/Vagrant/action/builtin/box_add.rb:458:in
元数据\u url?“ 来自C:/HashiCorp/Vagrant/embedded/gems/gems/Vagrant-1.6.3/lib/Vagrant/action/builtin/box_add.rb:77:in
block-in-call'
来自C:/HashiCorp/Vagrant/embedded/gems/gems/Vagrant-1.6.3/lib/Vagrant/action/builtin/box_add.rb:75:in
map' 来自C:/HashiCorp/Vagrant/embedded/gems/gems/Vagrant-1.6.3/lib/Vagrant/action/builtin/box_add.rb:75:in
呼叫'
来自C:/HashiCorp/Vagrant/embedded/gems/gems/Vagrant-1.6.3/lib/Vagrant/action/warden.rb:34:in
call' 来自C:/HashiCorp/Vagrant/embedded/gems/gems/Vagrant-1.6.3/lib/Vagrant/action/builder.rb:116:in
呼叫'
来自C:/HashiCorp/Vagrant/embedded/gems/gems/Vagrant-1.6.3/lib/Vagrant/action/runner.rb:66:in
运行中的阻塞' 来自C:/HashiCorp/Vagrant/embedded/gems/gems/Vagrant-1.6.3/lib/Vagrant/util/busy.rb:19:in
busy'
来自C:/HashiCorp/Vagrant/embedded/gems/gems/Vagrant-1.6.3/lib/Vagrant/action/runner.rb:66:in
run' 来自C:/HashiCorp/Vagrant/embedded/gems/gems/Vagrant-1.6.3/lib/Vagrant/action/builtin/handle\u box.rb:79:in
handle\u-box'
来自C:/HashiCorp/Vagrant/embedded/gems/gems/Vagrant-1.6.3/lib/Vagrant/action/builtin/handle\u box.rb:42:in
block in call' 来自C:/HashiCorp/Vagrant/embedded/gems/gems/Vagrant-1.6.3/lib/Vagrant/action/builtin/handle\u box.rb:36:in
同步'
来自C:/HashiCorp/Vagrant/embedded/gems/gems/Vagrant-1.6.3/lib/Vagrant/action/builtin/handle\u box.rb:36:in
call' 来自C:/HashiCorp/Vagrant/embedded/gems/gems/Vagrant-1.6.3/lib/Vagrant/action/warden.rb:34:in
呼叫'
来自C:/HashiCorp/Vagrant/embedded/gems/gems/Vagrant-1.6.3/lib/Vagrant/action/warden.rb:95:in
finalize\u动作中的块 来自C:/HashiCorp/Vagrant/embedded/gems/gems/Vagrant-1.6.3/lib/Vagrant/action/warden.rb:34:in
呼叫'
来自C:/HashiCorp/Vagrant/embedded/gems/gems/Vagrant-1.6.3/lib/Vagrant/action/warden.rb:34:in
call' 来自C:/HashiCorp/Vagrant/embedded/gems/gems/Vagrant-1.6.3/lib/Vagrant/action/builder.rb:116:in
呼叫'
来自C:/HashiCorp/Vagrant/embedded/gems/gems/Vagrant-1.6.3/lib/Vagrant/action/runner.rb:66:in
运行中的阻塞' 来自C:/HashiCorp/Vagrant/embedded/gems/gems/Vagrant-1.6.3/lib/Vagrant/util/busy.rb:19:in
busy'
来自C:/HashiCorp/Vagrant/embedded/gems/gems/Vagrant-1.6.3/lib/Vagrant/action/runner.rb:66:in
run' 来自C:/HashiCorp/Vagrant/embedded/gems/gems/Vagrant-1.6.3/lib/Vagrant/action/builtin/call.rb:53:in
呼叫'
来自C:/HashiCorp/Vagrant/embedded/gems/gems/Vagrant-1.6.3/lib/Vagrant/action/warden.rb:34:in
call' 来自C:/HashiCorp/Vagrant/embedded/gems/gems/Vagrant-1.6.3/plugins/providers/virtualbox/action/check_virtualbox.rb:17:in
呼叫'
来自C:/HashiCorp/Vagrant/embedded/gems/gems/Vagrant-1.6.3/lib/Vagrant/action/warden.rb:34:in
call' 来自C:/HashiCorp/Vagrant/embedded/gems/gems/Vagrant-1.6.3/lib/Vagrant/action/builder.rb:116:in
呼叫'
来自C:/HashiCorp/Vagrant/embedded/gems/gems/Vagrant-1.6.3/lib/Vagrant/action/runner.rb:66:in
运行中的阻塞' 来自C:/HashiCorp/Vagrant/embedded/gems/gems/Vagrant-1.6.3/lib/Vagrant/util/busy.rb:19:in
busy'
来自C:/HashiCorp/Vagrant/embedded/gems/gems/Vagrant-1.6.3/lib/Vagrant/action/runner.rb:66:in
run' 来自C:/HashiCorp/Vagrant/embedded/gems/gems/Vagrant-1.6.3/lib/Vagrant/machine.rb:196:in
action\u raw'
来自C:/HashiCorp/Vagrant/embedded/gems/gems/Vagrant-1.6.3/lib/Vagrant/machine.rb:173:in
block in action' 来自C:/HashiCorp/Vagrant/embedded/gems/gems/Vagrant-1.6.3/lib/Vagrant/environment.rb:434:in
lock'
来自C:/HashiCorp/Vag
config.vm.box = "theirgoods"