简体   繁体   English

Laravel Homestead流浪了盒子的问题

[英]Laravel Homestead vagrant up box issue

I am installing laravel homestead. 我正在安装laravel家园。 As I am new on this so maybe i took some steps wrong while installing and setting up laravel homestead on windows. 由于我是新手,所以也许我在Windows上安装和设置laravel homestead时采取了一些错误措施。

I followed a tutorial and download laravel homestead box directly and then install it manually by giving it a local disk url. 我遵循了一个教程并直接下载laravel homestead box,然后通过为其提供本地磁盘URL来手动安装。 It installed perfectly fine till then. 到那时为止,它的安装都很好。 But now when i am trying to "vagrant up" command it says that box doesnt found. 但是现在当我尝试“无用”命令时,它说找不到该框。

So after that I read somewhere that it we have to add manyual metadata somewhere but I dont know where. 因此,在那之后我在某处阅读了它,我们必须在某处添加许多元数据,但我不知道在哪里。 And after some changes I am facing this error. 经过一些更改后,我遇到了这个错误。

在此处输入图片说明

Once you have downloaded the box manually, you need to add it to vagrant config, so vagrant knows about the box for later user. 手动下载该框后,需要将其添加到vagrant config中,以便vagrant知道该框供以后的用户使用。 run the following command : 运行以下命令:

$ vagrant box add --box-version <VERSION_DOWNLOADED> laravel/homestead <path to downloaded file> 

After this, make sure to go to the folder where homestead has been cloned (do not do that from the .vagrant directory, just go somewhere else, and avoid path with space, windows generally does not like it; C:\\homestead will be just fine for a test) and you can run vagrant up from there 此后,请确保转到克隆了宅基地的文件夹(不要从.vagrant目录中执行此.vagrant ,请转到其他地方,并避免使用空格路径,Windows通常不喜欢它; C:\\homestead将是只需进行测试就可以了),然后您可以从那里运行vagrant up

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM