我在laravel中真的很新,我只是在修复环境。我已按照docs中的说明操作,直到“启动流浪者盒子”为止。
当我跑步'流浪汉'或者' hometead up'我遇到了这个错误:
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Importing base box 'laravel/homestead'...
There was an error while executing `VBoxManage`, a CLI used by Vagrant
for controlling VirtualBox. The command and stderr is shown below.
Command: ["import", "-n", ""]
Stderr: Oracle VM VirtualBox Command Line Management Interface Version 5.0.12
(C) 2005-2015 Oracle Corporation
All rights reserved.
Usage:
VBoxManage import <ovfname/ovaname>
[--dry-run|-n]
[--options keepallmacs|keepnatmacs|importtovdi]
[more options]
(run with -n to have options displayed
for a particular OVF)
Syntax error: Not enough arguments for "import" command.
我的homestead.yaml是:
---
ip: "192.168.10.10"
memory: 2048
cpus: 1
provider: virtualbox
authorize: c:/Users/Me/.ssh/id_rsa.pub
keys:
- c:/Users/Mr/.ssh/id_rsa/
folders:
- map: c:/Users/Me/Desktop/Projects
to: /home/vagrant/Projects
sites:
- map: homestead.app
to: /home/vagrant/Projects/homestead/public
hhvm: true
databases:
- homestead
# blackfire:
# - id: foo
# token: bar
# client-id: foo
# client-token: bar
# ports:
# - send: 50000
# to: 5000
# - send: 7777
# to: 777
# protocol: udp
我尝试过git方法和composer方法。我已经在这一周了。我的电脑支持vms。我已经查过了。救命。谢谢!
答案 0 :(得分:1)
我得到了这个工作。我应该使用git bash代替cmd。