Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/windows/17.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
Windows 指定了无效选项_Windows_Command Line_Vagrant_Vagrant Windows - Fatal编程技术网

Windows 指定了无效选项

Windows 指定了无效选项,windows,command-line,vagrant,vagrant-windows,Windows,Command Line,Vagrant,Vagrant Windows,在Windows 8上运行时,我正在尝试在笔记本电脑上安装。我已经下载并安装了vagrant和Virtualbox,目前正在尝试使用 vagrant init tsawler/wafs; vagrant up --provider virtualbox 我得到了这个错误 C:\Users\patrick\Documents\website>vagrant init tsawler/wafs; vagrant up --provider virtualbox An invalid opti

在Windows 8上运行时,我正在尝试在笔记本电脑上安装。我已经下载并安装了vagrant和Virtualbox,目前正在尝试使用

vagrant init tsawler/wafs; vagrant up --provider virtualbox
我得到了这个错误

C:\Users\patrick\Documents\website>vagrant init tsawler/wafs; vagrant up --provider virtualbox
An invalid option was specified. The help for this command is available below.

Usage: vagrant init [options] [name [url]]

Options:

    -f, --force                      Overwrite existing Vagrantfile
    -m, --minimal                    Create minimal Vagrantfile (no help comment
s)
        --output FILE                Output path for the box. '-' for stdout
    -h, --help                       Print this help

我尝试在init之后添加
-f
-force
选项,但仍然得到相同的结果。是否缺少一个设置?

有时,同一行上的多个命令可能无法正确解析,并且单独运行它们通常是有效的。试试这些


C:\Users\patrick\Documents\website>vagrant init tsawler/wafs C:\Users\patrick\Documents\website>vagrant up

以管理权限运行命令提示符。

您可以单独尝试这些命令吗<代码>C:\Users\patrick\Documents\website>vagrant init tsawler/wafs C:\Users\patrick\Documents\website>vagrant up非常感谢vipinagg,这解决了我的问题,安装非常完美