laravel宅基地,规定不是命令

时间:2016-09-09 09:56:17

标签: laravel homestead

我正在学习本教程:

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 个答案:

答案 0 :(得分:2)

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

vagrant reload --provision

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