laravel/installer已經裝好了
這時我要執行「laravel」指令,卻跟我說無此指令
xx@xx:/test2$ laravel
laravel:無此指令
我去搜尋了「laravel:not found command」找到一些資料
Ubuntu的解法是,只要下這個指令,就可以讓他們連接上
xx@:/test2$ export PATH="~/.composer/vendor/bin:$PATH"
xx@:/test2$
這時再輸入「laravel」指令,就成功了
xx@xx:/test2$ laravel
Laravel Installer 2.0.1
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
new Create a new Laravel application.
想對外分享這則貼文嗎?運用網址更方便呦~