宅基地初始化未定义
homestead init not defined
在 the official installation instructions of version 4.2 之后安装 homestead 时,我在执行 $ homestead init
时收到以下错误消息:
即
[Symfony\Component\Console\Exception\CommandNotFoundException]
Command "init" is not defined.
我之前的步骤是使用 composer global require "laravel/homestead=~3.0"
安装宅基地
我安装了 Laravel Homestead version 3.0.1
并且 homestead
在我的 PATH
中。
嗯嗯我记得我第一次安装homestead的时候遇到过这个问题。我可以看到您提供的 link 与 Laravel 4.2 有关。然而,按照 5.2 文档中的宅基地安装似乎对我自己没问题:
解决方法很简单。
确保您已将此添加到您的 bash 配置文件或 .zshrc 文件中。
function homestead() {
( cd ~/Homestead && vagrant $* )
}
在 the official installation instructions of version 4.2 之后安装 homestead 时,我在执行 $ homestead init
时收到以下错误消息:
即
[Symfony\Component\Console\Exception\CommandNotFoundException]
Command "init" is not defined.
我之前的步骤是使用 composer global require "laravel/homestead=~3.0"
我安装了 Laravel Homestead version 3.0.1
并且 homestead
在我的 PATH
中。
嗯嗯我记得我第一次安装homestead的时候遇到过这个问题。我可以看到您提供的 link 与 Laravel 4.2 有关。然而,按照 5.2 文档中的宅基地安装似乎对我自己没问题:
解决方法很简单。 确保您已将此添加到您的 bash 配置文件或 .zshrc 文件中。
function homestead() {
( cd ~/Homestead && vagrant $* )
}