我在我的环境中使用Vagrant,我遇到了一个小问题:

$vagrant up

Bringing machine 'default' up with 'virtualbox' provider...
==> default: Box 'base' could not be found. Attempting to find and install...
    default: Box Provider: virtualbox
    default: Box Version: >= 0
==> default: Adding box 'base' (v0) for provider: virtualbox
    default: Downloading: base

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/.../base

我已经初始化了我的项目与流浪者初始化,但出于某种原因流浪者拒绝工作。


当前回答

这是我在Windows 10上的工作:https://stackoverflow.com/a/31594225/2400373

但使用命令后,需要删除文件:Vagranfile:

vagrant init precise64 http://files.vagrantup.com/precise64.box

之后,

vagrant up

其他回答

这是我在Windows 10上的工作:https://stackoverflow.com/a/31594225/2400373

但使用命令后,需要删除文件:Vagranfile:

vagrant init precise64 http://files.vagrantup.com/precise64.box

之后,

vagrant up

我通过访问。vagrant文件夹解决了这个问题。将文件夹名称从laravell - vagrantslash -homestead改为base。 这对我很有效。

请检查BIOS中是否启用了虚拟化。

编辑vagrant init在同一目录下创建的vagrant文件,并在config.vm.box = "ubuntu/trusty64"行中输入盒子的名称,其中ubuntu/trusty64是你的基本盒子。现在vagrant up将下载并设置ubuntu/trusty64为你的基础框。

对我来说,这是以下几个步骤:

cd homestead(在您的目录homestead文件夹下)或cd homestead del vagrantfile或rm -Rf vagrantfile 流浪者在laravel/homestead 流浪汉了

如果你使用的是OS X并且使用了标准安装,删除vagrant的旧curl,它现在应该可以工作了

Sudo rm /opt/vagrant/embedded/bin/curl