Matt
Matt

Reputation: 1580

"vagrant box add laravel/homestead" results in multiple errors

enter image description here

Setup

What I've tried:

I've tried the installation 4 times, it's very painful as it takes about 45 minutes per box download on my ADSL connection.

Can anyone please advise?

Upvotes: 2

Views: 625

Answers (1)

cfreear
cfreear

Reputation: 1875

This question was answered on reddit here but I'll add it here too in case others stumble across this question.

This set of errors will usually be experienced when you run out of disk space on the drive Vagrant uses to store it's boxes and temporary download files. This location defaults to under the users home directory (C:\Users\Matt\.vagrant.d in the questions case)

Vagrant lets you specify a number of environment variables including the location of this VAGRANT_HOME directory.

You can change it by running the following in a command prompt:

REG ADD HKCU\Environment /v VAGRANT_HOME /t REG_SZ /d "E:\Vagrant\vagrant.d"

where E:\Vagrant\vagrant.d is the desired location.

Alternatively you can add the environment variable yourself:

  • Go to Control Panel > System > Advanced System Settings > Advanced > Environment Variables
  • In the User variables for USER section click New...
  • Set the Variable name to VAGRANT_HOME
  • Set the Variable value to E:\Vagrant\vagrant.d

Changes to environment variables should take effect instantly but you may need to restart cmd.exe instance you are using

Upvotes: 1

Related Questions