vagrantup.com说输入 vagrant box add hashicorp/precise32
, 但是当我输入时,终端输出错误信息:
This command was not invoked properly. The help for this command is
available below.
Usage: vagrant box add <name> <url> [--provider provider] [-h]
然后,我输入
vagrant box add hashicorp/precise32 \ http://files.vagrantup.com/hashicorp/precise32.box
,但下载失败,并显示以下错误消息。
Download failed. Will try another box URL if there is one.
An error occurred while downloading the remote file. The error
message, if any, is reproduced below. Please fix this error and try
again.
Couldn't open file /Users/XXXX/ http:/files.vagrantup.com/precise32.box
如何安装 vagrant box?
最佳答案
vagrant box add
的语法由于 Vagrant Cloud,子命令在 1.5 版中发生了变化。介绍。
从输出消息看来,您使用的是旧版本,因此当前文档对您的情况不可靠。
Here您可以找到旧文档的快照,无论如何您需要使用的语法如下:
vagrant box add precise32 http://files.vagrantup.com/precise32.box
关于vagrant - 命令 'vagrant box add' 失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23289943/