Vagrant up throws错误

时间:2016-09-01 07:21:27

标签: vagrant homestead vagrant-windows

大家好我想尝试运行命令vagrant但是它给我一个错误。这是前天的工作,从昨天开始,它一直在向我抛出这个错误

C:\ProgramData\Oracle\Java\javapath;
C:\Windows\system32;C:\Windows;
C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;
C:\Program Files\Git\cmd;
C:\Program Files (x86)\Ampps\php;
C:\ProgramData\ComposerSetup\bin;
C:\Program Files (x86)\Skype\Phone\;
D:\Ampps\mysql\bin;D:\Ampps\php;
C:\HashiCorp\Vagrant\bin;
C:\Program Files (x86)\nodejs\;
C:\Users\TBox Solutions\AppData\Local\atom\bin;
C:\Users\TBox Solutions\AppData\Roaming\Composer\vendor\bin;
C:\Users\TBox Solutions\AppData\Local\.meteor\;
C:\adt-bundle-windows-x86_64-20140702\sdk\platform-tools;
C:\adt-bundle-windows-x86_64-20140702\sdk\tools;
C:\Program Files\Java\jdk1.8.0_77\bin;
C:\Users\TBox Solutions\AppData\Local\Spoon\Cmd;
C:\Users\TBox Solutions\AppData\Roaming\npm

现在我用google搜索它,我得到的是目录中可能有空格,是的,那些答案是正确的,在PATH变量中的某些路径中有一个空格,但我想要的第一个问题知道

  

为什么它会在yestarday之前的所有日子里运行

,第二个问题是

  

我必须纠正哪条路径,因为我个人从未做过安装,我得到的系统配置了它。以下是我的路径变量中的路径:

for (int i = 0; i < elements.length; i++)

1 个答案:

答案 0 :(得分:0)

消息说:

The directory where plugins are installed (the Vagrant home directory)
has a space in it. On Windows, there is a bug in Ruby when compiling
plugins into directories with spaces. Please move your Vagrant home
directory to a path without spaces and try again.

您必须更改您的用户名,不能包含空格。例如TBox_Solutions。

创建一个新用户进行测试。