脚本php artisan优化处理返回的post-install-cmd事件,错误代码为255

时间:2016-10-04 09:31:24

标签: laravel-5 composer-php bitbucket

克隆git repo后,安装composer和Laravel,会出现此错误。任何人都可以解决此错误?

当我运行laravel new时,我收到此错误:

Crafting application...
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Nothing to install or update
Generating autoload files
> php -r "file_exists('.env') || copy('.env.example', '.env');"
> Illuminate\Foundation\ComposerScripts::postInstall
> php artisan optimize
Script php artisan optimize handling the post-install-cmd event returned with error code 255
Application ready! Build something amazing.

1 个答案:

答案 0 :(得分:1)

你克隆了哪个回购?如果你想创建一个新的laravel项目,只需尝试运行laravel new projectName, 查看文档here