找不到框"laravel/homestead" [英] The box 'laravel/homestead' could not be found

查看:114
本文介绍了找不到框"laravel/homestead"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尝试配置laravel 5.1.

Trying to configure laravel 5.1.

克隆了 laravel/homestead

将其克隆到Home目录之后.尝试运行vagrant up命令时抛出错误,如下所示:

After cloning it to Home directory. Throwing error when tried to run the vagrant up command as below:

user@user:~/laravel/homestead$ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
There are errors in the configuration of this machine. Please fix
the following errors and try again:

vm:
* The box 'laravel/homestead' could not be found.

我第一次尝试使用vagrant box add laravel/homestead

This command was not invoked properly. The help for this command is
available below.

Usage: vagrant box add <name> <url> [--provider provider] [-h]

        --checksum VALUE             Checksum
        --checksum-type VALUE        Checksum type
    -c, --clean                      Remove old temporary download if it exists.
    -f, --force                      Overwrite an existing box if it exists.
        --insecure                   If set, SSL certs will not be validated.
        --cacert certfile            CA certificate
        --cert certfile              The client SSL cert
        --provider provider          The provider that backs 

也尝试传递url作为显示的错误,但仍然失败. Atlast克隆 从git repo

Also tried passing url as the error shown, still failed. Atlast cloned from the git repo

1.流浪者-v: Vagrant 1.4.3

2.流浪者框添加laravel/homestead https://atlas.hashicorp.com/laravel/boxes/homestead

2. vagrant box add laravel/homestead https://atlas.hashicorp.com/laravel/boxes/homestead

错误:

Downloading box from URL: https://atlas.hashicorp.com/laravel/boxes/homestead
Extracting box...e: 0/s, Estimated time remaining: --:--:--)
The box failed to unpackage properly. Please verify that the box
file you're trying to add is not corrupted and try again. The
output from attempting to unpackage (if any):

bsdtar: Error opening archive: Unrecognized archive format

3.宅基地:

Laravel Homestead version 2.0.17

Usage:
  command [options] [arguments]

Options:
  -h, --help            Display this help message
  -q, --quiet           Do not output any message
  -V, --version         Display this application version
      --ansi            Force ANSI output
      --no-ansi         Disable ANSI output
  -n, --no-interaction  Do not ask any interactive question
  -v|vv|vvv, --verbose  Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug

Available commands:
  destroy    Destroy the Homestead machine
  edit       Edit the Homestead.yaml file
  halt       Halt the Homestead machine
  help       Displays help for a command
  init       Create a stub Homestead.yaml file
  list       Lists commands
  provision  Re-provisions the Homestead machine
  resume     Resume the suspended Homestead machine
  run        Run commands through the Homestead machine via SSH
  ssh        Login to the Homestead machine via SSH
  status     Get the status of the Homestead machine
  suspend    Suspend the Homestead machine
  up         Start the Homestead machine
  update     Update the Homestead machine image

我在做什么错?

推荐答案

更新您的Vagrant. Vagrant Cloud是在1.5 IRC中引入的,因此您的vagrant不了解如何处理vagrant box add laravel/homestead

Update your Vagrant. Vagrant Cloud was introduced in 1.5 IRC, hence your vagrant doesn't understand how to deal with command like vagrant box add laravel/homestead

这篇关于找不到框"laravel/homestead"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆