Laravel Homestead 安装过程中令人困惑的步骤?

Confusing step in the Laravel Homestead installation process?

我正在完成 Laravel Homestead 设置,但某个特定说明似乎完全不在 context/unexplained 范围内。我对 composer 一点都不熟悉,过去只使用 npm 进行包管理。

在 'Installing Homestead' 部分,在 With Composer + PHP Tool 下显示:


Once the box has been added to your Vagrant installation, you are ready to install the Homestead CLI tool using the Composer global command:

composer global require "laravel/homestead=~2.0"

Make sure to place the ~/.composer/vendor/bin directory in your PATH so the homestead executable is found when you run the homestead command in your terminal.

http://laravel.com/docs/4.2/homestead


强调我的。这是什么意思?什么~/.composer/vendor/bin目录?什么PATH?感觉少了一步!​​

更新 PATH 变量稍微超出了 Laravel 文档的规范,因为这是您应该为作曲家做的事情,但无论如何我也认为 Laravel 至少应该 link通过如何去做的资源。

Create/edit你的~/.bash_profile,添加以下内容

export PATH=~/.composer/vendor/bin:$PATH

终于运行source ~/.bash_profile更新您的环境

我写了一篇关于此的博客,其中更详细一些http://blog.iwader.co.uk/updating-path-environment-variable-osx-and-unix-systems/