laravel 5安装php artisan解析错误期待标识符(T_STRING)

时间:2015-06-20 14:08:11

标签: php laravel-5 artisan

为什么每次安装 Laravel 5 后都会输入命令

laravel new project-name    

通常我会遇到问题

Crafting application...

Parse error: parse error, expecting `"identifier (T_STRING)"' or `"variable (T_VARIABLE)"' or `'{'' or `'$'' in /Applications/MAMP/htdocs/test/artisan on line 31
Script php artisan clear-compiled handling the post-install-cmd event returned with an error



  [RuntimeException]  
  Error Output:       



run-script [--dev] [--no-dev] [-l|--list] [script] [args1] ... [argsN] 

然后,当我尝试使用命令php -S localhost:8888 -t public打开服务器并在浏览器中打开它时,我总是在我的主页上看到此问题

Parse error: parse error, expecting `"identifier (T_STRING)"' or `"variable (T_VARIABLE)"' or `'{'' or `'$'' in /Applications/MAMP/htdocs/test/public/index.php on line 50

我怎么修理它?

0 个答案:

没有答案