代码之家  ›  专栏  ›  技术社区  ›  jackdaw

拉拉维夫宅地,提供而不是命令

  •  1
  • jackdaw  · 技术社区  · 9 年前

    我正在学习本教程:

    https://code.tutsplus.com/courses/build-a-cms-with-laravel/lessons/install-and-configure-laravel

    然而,当到达台阶时 homestead provision 我得到这个错误: [Symfony\Component\Console\Exception\CommandNotFoundException Command "provision" is not defined.

    这是一个问题。如果我跑步 homestead -v

    $ homestead -v
    Laravel Homestead version 3.0.2
    
    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:
      help  Displays help for a command
      list  Lists commands
      make  Install Homestead into the current project
    

    因此,供应不是命令。有人知道我需要安装什么才能让它工作吗?

    1 回复  |  直到 9 年前
        1
  •  2
  •   Alexey Mezenin    9 年前

    尝试运行此命令以重新加载和配置:

    vagrant reload --provision
    

    https://laravel.com/docs/5.3/homestead