我已按照以下命令为Laravel安装了一个Vagrant框:vagrant box add laravel/homestead --box-version 8.1.0
(已成功添加框)
一旦我尝试过vagrant up
(找不到框'laravel / homestead'。正在尝试查找和安装...)
D:\Labs\laravel6>vagrant up
Bringing machine 'laravel6' up with 'virtualbox' provider...
==> laravel6: Box 'laravel/homestead' could not be found. Attempting to find and install...
laravel6: Box Provider: virtualbox
laravel6: Box Version: >= 8.2.0
==> laravel6: Loading metadata for box 'laravel/homestead'
laravel6: URL: https://vagrantcloud.com/laravel/homestead
==> laravel6: Adding box 'laravel/homestead' (v8.2.1) for provider: virtualbox
laravel6: Downloading: https://vagrantcloud.com/laravel/boxes/homestead/versions/8.2.1/providers/virtualbox.box
laravel6: Download redirected to host: vagrantcloud-files-production.s3.amazonaws.com
laravel6: Progress: 0% (Rate: 249k/s, Estimated time remaining: 1:26:16)==> laravel6: Waiting for cleanup before exiting...
答案 0 :(得分:0)
您似乎希望使用Homestead的盒子版本8.1.0。从Vagrant文档中可以找到
https://www.vagrantup.com/docs/boxes/versioning.html#version-constraints
您可以将Vagrant环境限制为特定版本或 通过指定Vagrantfile使用的框版本 config.vm.box_version选项。
如果未指定此选项,则始终使用最新版本。
如果您只想启动并运行,我建议运行:
vagrant box add laravel/homestead
vagrant up
最诚挚的问候