我觉得自己是个白痴,不得不问这个问题,我已经问了所有类似的问题,但都没有用.我在mac上的一个流浪虚拟机上运行Ubuntu14.04.我安装了composer,并运行了以下命令:
composer global require "laravel/installer"
(这似乎起到了作用,表明laravel是下载的东西之一)
I have also added this line to the .bashrc
export PATH="∼/.composer/vendor/bin:$PATH"
Note, i added this to both the vagrant user as well as the root users .bashrc file. I have logged out and back into the shell and verified the path with this command:
echo $PATH
这让我想到:
∼/.编写者/供应商/bin:∼/.composer /vendor/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
and the command itself that fails is this
laravel new test
我看不出我会错过什么,有什么 idea 吗?