2016-10-04 29 views
1

返回克隆后的混帐回购协议,安装作曲家和Laravel,这个错误会出来。任何人都可以解决此错误?脚本PHP工匠优化处理后安装-CMD事件,错误代码255

当我运行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

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

+0

谢谢你的回复,雷。我克隆了laravel项目。所以我该怎么做? –

+0

@ C.Sing,你不需要克隆laral项目,尝试阅读文档。命令'Laravel new projectName'将为您创建一个新的laravel项目 –